git

1、git支持多用户,下载代码

       在linnux中添加 /root/.ssh路径下中添加 config文件文件内容设置如下                    

 Host gitlab.zte.com.cn

IdentityFile ~/.ssh/ims-sss_rsa
User git

2、常用的git命令

  • git pull
  • git add .
  • git status
  • git commit -m  -a
  • igt pull --rebase
  • git reset --hard
  • git reset --soft HEAD^
  • git stash
  • git stash pop 
  • git merge 后 git commit
  • git checkout
  • git diff
  • git log
  • git reflog
  • git push origin master
  • git remote -v
  • git rm 
原文地址:https://www.cnblogs.com/meiguhuaxian/p/7976456.html