现象:

解决办法:打开Git Bash,执行git config --global core.quotepath false
git initgit add .git commit -m "log message(自己的提交日志)”git remote add origin https://github.com/NightAlexLy/doc.git,在github上面添加origingit push -u origin master ,将代码同步至github。git pull --rebase origin查看git origin的地址: git remote -v
git remote rm origin
git remote add origin https://username:password@github.com/username/test.git
git push origin master
vi /etc/profile
添加"export PATH=$PATH:/usr/libexec/git-core"
source /etc/profile
或者是安装问题
make prefix=/usr all doc info ;# as yourself
make prefix=/usr install install-doc install-html install-info ;# as root
先通过 git log 查找要回退的 节点(commit_hash)
git reset --hard commit_hash
git push origin HEAD --force
原文:https://www.cnblogs.com/LuisYang/p/9362687.html