赞
踩
<type>(<scope>):<subject>
git commit -m "feat(Controller):本次新增加了功能用来xxx"
一次提交(commit)只能是一个变更或功能,不允许一次提交多个变更和功能,便于版本回溯及检查
代码提交之前和提交之后必须做如下检查
1.提交修改之前必须验证是否可编译通过、是否已完全解决此问题、是否会导致其他问题
2.对于重要任务,提交后必须重新克隆一份代码验证此次提交是否可编译通过不会导致其他问题。
git config --global user.name xiaojin
git config --global user.email xiaojin@lovecode.com
git status
git add .
git pull
git commit -m "perf(View): 优化了xxx视图"
git push
git config --list
git config user.name
添加远程仓库
git remote add <shortname> <url>
欢迎大家指出文章需要改正之处~
学无止境,合作共赢
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。