git安装配置:https://blog.csdn.net/huaishu/article/details/50475175
git clone时报错:The requested URL returned error: 401 Unauthorized while accessing
自己的解决方法:Centos 6.5升级Git到Git2.9.2:https://blog.csdn.net/Kangshuo2471781030/article/details/80451246
这篇博客总结的比较全:https://blog.csdn.net/Time888/article/details/54600605
如何解决failed to push some refs to git:
可以通过如下命令进行代码合并【注:pull=fetch+merge]
git pull --rebase origin XXX
往GitLab提交一个自己分支的完整流程
1.登陆: git config --global user.email "you@example.com"
2.git config --global user.name "Your Name"
这个email和name后面有个空格要注意。
3.git status:查看仓库的状态。
4.git add <file>:将文件加入缓存区中;
5.git status:查询是否加入成功;
6.git commit -m "":只会提交添加到缓存区的文件到本地仓库;
或者git commit -a -m "":能提交修改过但没有添加到缓存区的文件
7.git log:git log 能查看提交历史,后面加上 --pretty=oneline 能使内容单行显示;
8.git push origin master:将本地仓库的文件上传到线上仓库;