1. git clone https://github.com/waittingbar/xxx.git
2. 修改文件后 git add .
3. git commit -a -m "change something"
4. 编辑 .git/config
文件
5. 修改 url= https://github.com/waittingbar/xxx.git 为 url=ssh://git@github.com/waittingbar/xxx.git
6. 保存 config文件
7. 提交到你的 GitHub git push origin master
最终config页面如下:
[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true [remote "origin"] url =ssh://git@github.com/waittingbar/xxx.git fetch = +refs/heads/*:refs/remotes/origin/*