git常用命令
提交、暂存、分支拉取以及新建分支等基础命令暂不列出
1. 更新远程分支列表
git remote update origin --prune
或者
git remote update origin -p
2. 将指定的提交(commit)应用于其他分支
-n
,--no-commit
只更新工作区和暂存区,不产生新的提交。方便解决分支冲突。
git cherry-pick <commitHash> -n
提交、暂存、分支拉取以及新建分支等基础命令暂不列出
1. 更新远程分支列表
git remote update origin --prune
或者
git remote update origin -p
2. 将指定的提交(commit)应用于其他分支
-n
,--no-commit
只更新工作区和暂存区,不产生新的提交。方便解决分支冲突。
git cherry-pick <commitHash> -n