git常用命名:自用,持续更新

1.切换分支

git checkout -b dev origin/feature/迭代1.1

 

2.提交本地代码到github

git init  //初始化git

git config --global core.autocrlf false  //解决:warning: LF will be replaced by CRLF

git add .  //添加到缓存

git commit -m "first commit"  //提交代码

git remote add origin git@github.com:xxxxx/xxxxx.git  //关联到git

git push -u origin master -f  //使用-f 强制push

参考:https://blog.csdn.net/michael10001/article/details/51371715

posted @ 2019-01-24 15:19  市井俗人  阅读(241)  评论(0编辑  收藏  举报