Open LiuL0703 opened 6 years ago
git 删除远程分支:git push origin --delete{} git查看远程分支:git branch -r git 切换远程分支:git checkout [name] git stash 保存当前修改 但不提交commit git stash apply{stash@{n}} 回到某个stash状态
将某次提交应用到指定分支 git checkout {branch-name} git cherry-pick {hash}
git branch -m new-name
git push origin :old-name new-name
git push origin -u new-name
How to change your commit messages in Git
更多Tips
Git
git 删除远程分支:git push origin --delete{}
git查看远程分支:git branch -r
git 切换远程分支:git checkout [name]
git stash 保存当前修改 但不提交commit
git stash apply{stash@{n}} 回到某个stash状态
将某次提交应用到指定分支 git checkout {branch-name} git cherry-pick {hash}
重命名分支名
git branch -m new-name
git push origin :old-name new-name
git push origin -u new-name
Git commit重命名
How to change your commit messages in Git
更多Tips