Command line instructions
git config --global user.name "张亚轩"
git config --global user.email "17621950386@163.com"
- Create a new repository 创建新的项目
git clone git@code.aliyun.com:yx.zhang/temp.git
cd temp
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
- Existing folder or Git repository 导入项目
cd existing_folder
git init
git remote add origin git@code.aliyun.com:yx.zhang/temp.git
git add .
git commit
git push -u origin master
Git 提交规范工具 Commitizen
npm install -g commitizen
npm init
commitizen init cz-conventional-changelog --save --save-exact
feat:新功能(feature)
fix:修补bug
docs:文档(documentation)
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动