git常用命令
简介网址:https://www.liaoxuefeng.com/wiki/896043488029600/898732792973664
1.git status
2.git add 显示的被改了的文件
· git add -A 提交所有变化
· git add -u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(new)
· git add . 提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件
3.git commit -m "message"
4.git pull origin <分支(branches)>
5.git push -u origin master
遇到问题:
记Git报错-refusing to merge unrelated histories:https://blog.csdn.net/u012145252/article/details/80628451
The authenticity of host 'github.com (192.30.253.113)' can't be established.:https://www.cnblogs.com/wu-song/p/7985594.html