git常用命令

git

git fetch origin 拉取远程仓库代码

git add ./ 添加本地仓库数据

git commit -m 'xxxxx' 备注

git merge origin

or git pull origin master 合并代码

CONFLICT 解决冲突文件

重新提交

git add ./

git commit -m 'xxxxx'

git push -u origin master 合并远程仓库代码

查看远程仓库:$ git remote -v

git remote remove origin # 删掉原来git源
git remote add origin [YOUR NEW .GIT URL] # 将新源地址写入本地版本库配置文件

原文地址:https://www.cnblogs.com/httpL/p/9772812.html