git commit --amend # 改变最近一次提交
git rebase -i HEAD~3 # 修改最近三次的提交说明,或者其中任意一次
git commit --amend # 保存好了,这些指示很明确地告诉了你该干什么
git rebase --continue # 修改提交说明,退出编辑器。
pick 310154e updated README formatting and added blame
pick f7f3f6d changed my name a bit
cd ..
rm -rf repo.git
git help * # 获取命令的帮助信息
git status # 获取当前的状态,非常有用,因为git会提示接下来的能做的操作
git fatal: protocol error: bad line length character: No s
解决办法:更换remote地址为 http/https 的。
The requested URL returned error: 403 Forbidden while accessing
解决github push错误的办法:
#vim 编辑器打开 当前项目中的config文件
vim .git/config
#修改
[remote "origin"]
url = https://github.com/jaywcjlove/example.git
#为下面代码
[remote "origin"]
url = https://jaywcjlove@github.com/jaywcjlove/example.git
git status
显示中文问题在查看状态的时候 git status
如果是中文就显示下面的情况
\344\272\247\345\223\201\351\234\200\346\261\202
解决这个问题方法是:
git config --global core.quotepath false