1234567891011121314151617181920212223242526272829303132 |
- git init
- git add .
- git commit -m "first commit"
- git remote add origin http://47.120.56.77:3000/zhengxifeng/tyqngp.git
- git push -u origin master
-
- ===========================
- .gitignore规则
-
- # 忽略所有.log文件
- *.log
- # 忽略所有编译生成的.o文件
- *.o
- # 忽略名为temp的目录及其所有内容
- temp/
- # 忽略docs目录下的所有.md文件
- docs/*.md
- # 忽略所有子目录下的.txt文件
- **/*.txt
-
- ===============================
-
- git rm -r --cached .
- 修改 .gitignore 规则
- git add .
- git commit -m "clear cached"
- git push origin local-develop:develop
-
- ===============================
- git fetch --all
- git reset --hard origin/master
- git pull origin master
|