Skip to content

Instantly share code, notes, and snippets.

@tanyongzheng
Last active January 8, 2020 09:07
Show Gist options
  • Select an option

  • Save tanyongzheng/da4e8185fd17790b221d4779e3bcfdce to your computer and use it in GitHub Desktop.

Select an option

Save tanyongzheng/da4e8185fd17790b221d4779e3bcfdce to your computer and use it in GitHub Desktop.
fork项目同步官方的commit
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://github.com/you-user/you-fork-project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "officialGit"]
url = https://github.com/official-user/official-project.git
fetch = +refs/heads/*:refs/remotes/officialGit/*
git command:
git pull officialGit master
git push origin
https://my.oschina.net/u/658505/blog/841576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment