常用命令
git clone https://git.coding.net/xxx/xxx.git
git pull
git status
git add .
git commit -m "测试"
git push
git push -o merge_request.create -o merge_request.target=my-target-branch
git log
git reflog
git reflog
git reset --hard e04ad43a
git log
git reflog
git diff
git revert commit_id
分支branch
git checkout -b test
git branch
git branch -r
git branch -a
git branch -D test
git push origin --delete test
git remote update origin --prune
git checkout test
git merge feature
git branch -m oldBranch newBranch
git push --delete origin oldBranch
git push -u origin newBranch
git checkout -b newBranch
git rm -rf .
暂存stash
git status
git stash
git status
git stash apply
回退reset
git reflog
git reset --hard e04ad43a
git push origin master --force
git status
git add .
git reset HEAD test1.txt
git reset --hard
git reset --soft
git reset --soft HEAD^
标签tag
git tag --list
git tag v1.0.0
git tag v1.0.0 -m "version 1.0.0 released"
git push origin master --tags
git tag -d v1.0.0
git push origin :refs/tags/v1.0.0
git checkout tag_name
git branch <new-branch-name> <tag-name>
git checkout newbranch