程序小白痴,经常深陷白痴错误。
主要记录自己遇到的问题,和最有帮助的解答贴的链接。
1 push 思路
git push的步骤:
-
打开.git路径
cd C:/Users/lenovo/tabu_search
【遇到问题1】 -
git add .
【遇到问题2】 -
git commit -m "写commit"
-
git remote add origin https://github.com/xxx/xxx.git
【遇到问题3】 -
git push -u origin master
主要参考链接:
github入门——push和clone的使用
https://www.jianshu.com/p/9d163c041c24
2 问题及解答
问题1
使用git init
后,报错。
$ git init
Reinitialized existing Git repository in C:/Users/lenovo/.git
$