0%

gitHub提交PullRequest

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
$ #do some change on the content
$ git commit -am "Fix issue #1: change helo to hello"
$ git push

[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

更新自己的仓库

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
给作者打赏,可以加首页微信,咨询作者相关问题!