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

 

posted @ 2020-03-02 13:10  xdd1997  阅读(188)  评论(0)    收藏  举报