1. fork别人的仓库
首先,在 GitHub 上 fork 到自己的仓库,如 docker_user/blockchain_guide,然后 clone 到本地,并设置用户信息。
1 2 3 4 5
| $ git clone git@github.com:docker_user/blockchain_guide.git $ cd blockchain_guide $ $ git commit -am "Fix issue #1: change helo to hello" $ git push
|
2. [remote rejected] master -> master (permission denied)
1 2 3 4 5 6 7 8
| Type command:
git config --global --edit Add these lines of configuration at the end of file:
[credential] helper = osxkeychain useHttpPath = true
|
3. 更新自己的仓库
1 2 3 4 5
| git remote add upstream https://github.com/unix2dos/GolangWeb git fetch upstream git checkout master git rebase upstream/master git push -f origin master
|