Skip to content

Instantly share code, notes, and snippets.

@robkorv
Created December 9, 2016 12:04
Show Gist options
  • Select an option

  • Save robkorv/f9106cc659823f16aa762bf0032b3d8e to your computer and use it in GitHub Desktop.

Select an option

Save robkorv/f9106cc659823f16aa762bf0032b3d8e to your computer and use it in GitHub Desktop.
git-tips-and-tricks

Stuff I took from https://about.gitlab.com/2016/12/08/git-tips-and-tricks/

global settings

git config --global fetch.prune true
git config --global rebase.autosquash true

clean up stuff

git checkout master
git branch --merged master | grep -v "master" | xargs -n 1 git branch -d

git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment