写在前面的话:
以前都是这样做的
1. 有一个想放到github上面的工程
2. 在github上面创建仓库
3. clone 这个仓库到本地
4. 然后把原先本地的工程文件放到clone下来的这个工程里面
这样做真是太low了!!
高大上做法:
- cd my_project
- git init
- git add -A
- git status
- git commit -m “First commit”
- 在github上面建立仓库
- git remote add origin [https_url]
- git pull
- git push –force origin master
写在后面的话:
以上全是命令行操作
本人在Android Studio Project中亲测可用
在此记录