如何规范git

2020-03-13  本文已影响0人  solfKwolf

vscode插件

conventional-changelog-cli

Generate a changelog from git metadata

"changelog": "conventional-changelog -i CHANGELOG.md -s -r 0"

git添加已有项目

mkdir git-test
cd git-test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/solfKwolf/git-test.git
git push -u origin master

git flow

常用分支

Git Flow 如何使用

git flow

tag 相关

git tag
git tag -l "v1.5.*"
# 1.push单个tag,命令格式为:
git push origin [tagname]
# 2.push所有tag,命令格式为:git push [origin] --tags
git push origin --tags
// 或者
git push --follow-tags origin master

参考资料

上一篇 下一篇

猜你喜欢

热点阅读