Skip to content

Instantly share code, notes, and snippets.

@cliffparnitzky
Last active August 22, 2017 20:09
Show Gist options
  • Save cliffparnitzky/0708baf821cda63e752f to your computer and use it in GitHub Desktop.
Save cliffparnitzky/0708baf821cda63e752f to your computer and use it in GitHub Desktop.
update github fork
@echo off
set /p BRANCH="Branch name: "
git fetch upstream
git checkout %BRANCH%
git reset --hard upstream/%BRANCH%
git push origin %BRANCH% --force
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
git fetch upstream
git checkout tng
git reset --hard upstream/tng
git push origin tng --force
@cliffparnitzky
Copy link
Author

Ggf. vorher den Upstream hinzufügen: git remote add upstream https://github.com/whoever/whatever.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment