使用步骤
使用前github中需有repository,本例子中的{test}.git
没有需Create a new repository
- git clone https://github.com/{your_github_name}/{test}.git;
- cd {test};
- git init ;
- git add *;
- git branch dev 如需,创建dev分支;
- git checkout dev 如需,切换到dev分支 ;
- git commit -m “Modification note description”;
- git remote add {test} https://github.com/{your_github_name}/{test}.git;
- git push {test} dev push到dev分支
异常错误
如报异常错误,需拉取github中最新的版本的代码
- git pull {test} master