Git
基本概念
常用命令
git config --global user.name xxx
git config --global user.email xxx@xxx.com
git init
git add XX
git add .
git rm --cached XX
git commit -m "给自己看的备注信息"
git status
git diff XX
git log
git reflog
git reset --hard HEAD^
git reset --hard HEAD~
git reset --hard HEAD^^
git reset --hard HEAD~100
git reset --hard 版本号
git checkout — XX
git restore XX
git remote add origin git@git.acwing.com:xxx/XXX.git
git push -u
git push origin branch_name
git clone git@git.acwing.com:xxx/XXX.git
git checkout -b branch_name
git branch
git checkout branch_name
git merge branch_name
git branch -d branch_name
git branch branch_name
git push --set-upstream origin branch_name
git push -d origin branch_name
git pull
git pull origin branch_name
git branch --set-upstream-to=origin/branch_name1 branch_name2
git checkout -t origin/branch_name
git stash
git stash apply
git stash drop
git stash pop
git stash list
GitHub