Git
发布日期:2021-05-14 14:52:29 浏览次数:21 分类:精选文章

本文共 2329 字,大约阅读时间需要 7 分钟。

��������� GIT ������

������������������������������������������������������������������������������������

��������������������������������������������������������������������� push

git init
git remote add origin https://gitee.com/.....(������������)

��������������������������������� push

git clone https://gitee.com/.....(������������)
git pull origin master

������������

  • ������������������������������������������������������������������������
  • git add .
    git commit -m "������������"
    1. ������������������������
    2. git push origin master

      ������������

      • ������������������������ readme ��������������������������������������������������������������� git pull origin master ������������������������������������������������������������

        • ������������������������������������
        git push origin master -f
        • ���������������������������������������������������������������
        git pull origin master

      ������������ GIT ������

      ���������������������������������

      git init
      git remote add origin https://gitee.com/major_s/Test.git
      git pull origin master

      GIT ������

      ������������������

      git config -l

      ������������������

      git config --system --list

      ������������������

      git config --global --list

      ���������������������������

      Git ���������������

      Git ������������������������������������

      • ������������ (Working Directory)���������������������������������
      • ��������� (Stage/Index)������ git add ������������������������������������
      • ��������� (Repository/Cit Directory)������������������������������

      ###o��plore ������������

      git status

      ������������

      ��������������������� .gitignore ������������������������

    3. ���������������������������������
    4. ������ Linux ���������
    5. ������������������������������������������
    6. ������������������������������������������������������������
    7. ������������������������������������������������������������������
    8. ������������������

      git branch

      ������������������

      git branch -r

      ������������

      git branch new_branch

      ������������

      • ���������������������
      git branch -d new_branch
      • ���������������������
      git push origin --delete new_branch
      git branch -dr repository/remot��������� modal

      ������������

      git checkout new_branch

      ������������

      git merge new_branch

      ������������������

      git pull origin master --allow-unrelated-histories

      ������������������������

      git remote -v

      ������������������������

      git remote set-url origin git@192.168.30.29:chenwei/em-data.com.cn.git
    上一篇:mongoDB
    下一篇:JS模块化规范

    发表评论

    最新留言

    很好
    [***.229.124.182]2025年04月06日 09时48分48秒