Git
Last updated
Last updated
delete all remote branches that have already been merged into master
This can produce errors with refs. If this happens I recommend:
putting all the errors in to error.txt
then running:
-23 suppresses the lines that are in both files, or only in file 2. The files have to be sorted (they are in your example) but if not, pipe them through sort first...
This command show the remote branch, but it sometimes shows branches that have been deleted.
To remove them
List the current configured remote repository for your fork.
Specify a new remote upstream repository that will be synced with the fork.
Verify the new upstream repository you've specified for your fork.
Syncing a fork
Sync a fork of a repository to keep it up-to-date with the upstream repository.
Change the current working directory to your local project.
Fetch the branches and their respective commits from the upstream repository. Commits to ''master'' will be stored in a local branch, ''upstream/master''.
Check out your fork's local ''master'' branch.
Merge the changes from ''upstream/master'' into your local ''master'' branch. This brings your fork's ''master'' branch into sync with the upstream repository, without losing your local changes.
1.
2. , by The Archetypal Paul (Dec 6, 2010) Stack Overflow