Skip to content

Instantly share code, notes, and snippets.

@hartfordfive
Created April 10, 2015 18:03
Show Gist options
  • Select an option

  • Save hartfordfive/47af7479d91a5918fec7 to your computer and use it in GitHub Desktop.

Select an option

Save hartfordfive/47af7479d91a5918fec7 to your computer and use it in GitHub Desktop.
Sample Git config
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[user]
name = Your Name
email = [email protected]
[alias]
rmbranch = !sh -c 'echo "Removing local branch $0" && git branch -d $0'
rmrbranch = !sh -c 'echo "Removing remote branch $0..." && git push origin :$0'
clb = !sh -c 'echo "Test synchronizing with remote branches" && git remote prune origin --dry-run'
clbc = !sh -c 'echo "Synchronizing with remote branches" && git remote prune origin'
rmtag = !sh -c 'echo "Removing git tag $0" && git tag -d $0 && git push --delete origin $0'
usebranch = !sh -c 'git checkout master && git branch $0 && git checkout $0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment