Syncing forks
See original GitHub issueAfter I have cloned my repositories and there are some forks I would like to syncing them with upstream.
As I see after the cloning the remote is not set (checking with git remote -v
).
Is it my task to add remote repository with git remote add [upstream] [git-url]
in my forks, or can it be automated with all-repos
?
My usual workflow is (maybe not the best):
1, clone my fork
2, add upstream repository as a remote
3, sync with upstream (git fetch --all
, git merge upstream/master
, git push origin master
)
4, create my topic branch + add code + create a PR from it
If the step 4 does not take a short time I would like to sync/rebase my topic branch with the master periodically. I have seen the push-module maybe it could help me in creating a PR, but will it help in syncing?
So my questions:
1, can all-repos-clone
automatically add repository from which I forked from as a remote? or is it a users task?
2, can all-repos
help me to sync master (or other branches) from time to time with upstream?
Thank you
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top GitHub Comments
I think I have no other questions right now to this topic -> so I am closing this.
so from this gist https://gist.github.com/CristinaSolana/1885435
these are the commands to sync a remote fork back to local fork - I will get around to making this a full script one day…
DRAFT https://gist.github.com/johndpope/c859925603e8f176318c1d28a1dca6fc