-
-
Save noherczeg/e9921072e370b3a8060417f6c85eb274 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| branch=$1 | |
| echo "--------------------------------" | |
| echo "Moving to branch: ${branch}" | |
| echo "--------------------------------" | |
| git fetch | |
| git checkout $branch | |
| git reset --hard origin/$branch | |
| git clean -d -f | |
| git pull | |
| echo "--------------------------------" | |
| echo "Status:" | |
| echo "--------------------------------" | |
| git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment