Skip to content

Instantly share code, notes, and snippets.

@LordZardeck
Created January 11, 2016 20:19
Show Gist options
  • Save LordZardeck/faf6c5b1e135405a2beb to your computer and use it in GitHub Desktop.
Save LordZardeck/faf6c5b1e135405a2beb to your computer and use it in GitHub Desktop.
Update Local git with Remote
#!/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