最流行的版本管理工具,你懂的
git config --global user.name xxxgit config --global user.email xxx
git checkout -b xxx
git checkout master
git pull
git checkout xxx
git merge master
git checkout master
git merge xxx
git push
建议采用git-flow规范: 1. 新项目,新功能: feature/xxx 2. 快速更改,修复bug: hotfix/xxx
使用命令行的同学可以在git bash里 vi ~/.gitconfig
, 将下面别名加入文件末尾:
[alias]cm = commitco = checkoutac = !git add -A && git commitst = status -sbtags = tag -lbranches = branch -acleanup = git config --global alias.cleanup "git branch --merged | grep -v '*' | xargs git branch -d"remotes = remote -vlg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
validate-commit-msg 用于检查 Node 项目的 Commit message 是否符合格式。
standard-version 版本生成工具,同时生成 Change log 的工具