-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forking, Updating #1368
Comments
Hub encourages the "triangular" workflow with git, where you fetch from one remote (hub calls it "origin" by default, but some people name it "upstream") and push it to another remote (typically your fork). Therefore: # fetch latest "master" branch from upstream:
$ git fetch origin master
# merge in latest upstream updates to your "feature" branch:
$ git merge origin/master
# push your "feature" branch to your fork:
$ hub fork
$ git push -u svkamp HEAD
# open a pull request with these changes:
$ hub pull-request |
@mislav it looks like @svkamp was asking about the particular task of updating a fork with changes from upstream, rather than about the generic triangular workflow. I'd say this would be equivalent to running I suppose adding a |
@waldyrious If you'd like to propose enchancements to the |
So... lets see if i got this right....
hub clone name/repo
cd repo
hub fork (creates a fork of name/repo to myname/repo
adds an origin for both...
so... how does one pull updates from the origin, and apply them to the fork then push them to myname/repo ???
its a bit confusing
The text was updated successfully, but these errors were encountered: