Git Help
Indexes
syncing a fork
# fetch remote changes
git fetch upstream
git checkout master
# merge changes to master
git merge upstream/masterClone
- set depth
--depth=14只下载最近的 14 次 commits
Tag
git tag列出已有标签git tag v0.1新建标签git show v0.1查看标签版本信息git push origin v0.1部署v0.1标签git push origin --tags部署所有本地标签git tag -d v0.2删除标签git push origin :refs/tags/v0.2应用删除操作
Merge
git cherry-pick d42c389f合并指定的提交到当前分支
blog comments powered by Disqus