git 命令记录
git命令记录
git clone
git add fileName
git add .
git commit -m"****"
git commit --amend
修改某次提交
>+ git commit --amend
git rebase -i HEAD
git commit --amend
git rebase --continue
git checkout
git checkout -b branch_name
git checkout -b branch_name origin/branch_name
git branch
git branch -m old_brancName new_branchName
git branch branch_name --set-upstream-to remote/branch_name
git branch -a
git branch -vv
git merge
git merge branch_name
git merge --abort
git merge --edit,-e,--no-edit
git reset
git reset --soft commitId
git reset --hard commitId
git revert
git revert HEAD
git revert HEAD^
git revert commitId
git stash
git stash HEAD
git stash HEAD^
git stash apply stashID
git cherry-pick commitId
git cherry-pick (commitid1..commitid100]
git cherry-pick [commitid1^..commitid100]
git cherry-pick --continue, --abort,–quit
git rebase
git rebase branch_name
git rebase --continue, --abort,–quit
git pull
git pull origin
git push
git push -f
git push --set-upstream origin/branch_name
git remote
git remote -v
git remote show origin

浙公网安备 33010602011771号