git bush上传,及常见异常问题的处理方法

write by xdd1997

  

全局设置
git config --global user.name "xdd1997"
git config --global user.email "1837990190@qq.com"

创建Git仓库
mkdir Download
cd Download
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xdd1997/Download.git
git push -u origin master

已有仓库
git add .
git commit -m "first commit"
git push -u origin master

 github平台如何回退代码到历史指定版本

error: Your local changes to the following files would be overwritten by merge”

git reset --hard
git pull

转载仅为学习,不会商用。
欢迎转载原创,附文链接。
原文地址:https://www.cnblogs.com/xdd1997/p/12395101.html