Add Git Sync Command

This commit is contained in:
JackTerok 2018-12-15 15:42:54 +01:00
parent cab5375b79
commit 3f7af50ddf
1 changed files with 23 additions and 0 deletions

23
PTMGitCommands.bat Normal file
View File

@ -0,0 +1,23 @@
@echo off
:start
cls
echo PTMagic Git Commands
echo The following Commands are available:
echo 1: Sync current Branch with Main Repo(This will remove all changes you made!)
SET /P Input= Please enter an input(1):
IF "%Input%" == "1" GOTO :sync
GOTO :start
:sync
git remote add upstream https://github.com/PTMagicians/PTMagic.git
git fetch upstream
git checkout develop
git reset --hard upstream/develop
git push origin develop --force
git pull origin develop
GOTO :end
:end
pause