Created
January 11, 2016 20:19
-
-
Save LordZardeck/faf6c5b1e135405a2beb to your computer and use it in GitHub Desktop.
Update Local git with Remote
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
#!/bin/bash | |
git checkout master | |
git fetch --tags origin | |
git merge --ff-only origin/master | |
git branch --merged | grep -v "\*" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment