Last active
August 22, 2017 20:09
-
-
Save cliffparnitzky/0708baf821cda63e752f to your computer and use it in GitHub Desktop.
update github fork
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p BRANCH="Branch name: " | |
git fetch upstream | |
git checkout %BRANCH% | |
git reset --hard upstream/%BRANCH% | |
git push origin %BRANCH% --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch upstream | |
git checkout master | |
git reset --hard upstream/master | |
git push origin master --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch upstream | |
git checkout tng | |
git reset --hard upstream/tng | |
git push origin tng --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ggf. vorher den Upstream hinzufügen:
git remote add upstream https://github.com/whoever/whatever.git