Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jacaetevha
Created April 13, 2018 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacaetevha/85d917118ef69b8211368d0abfed091d to your computer and use it in GitHub Desktop.
Save jacaetevha/85d917118ef69b8211368d0abfed091d to your computer and use it in GitHub Desktop.
Git config
[user]
name = ...
email = ...
[core]
editor = vim
autocrlf = input
safecrlf = false
[alias]
co = checkout
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
recent-branches = for-each-ref --sort=-committerdate --count=10 --format='%(refname:short)' refs/heads/
switch-to-recent = "!switchtorecent() { PS3='select branch: '; select b in `git recent-branches $*` ; do echo \"switching to $b\"; git co $b; exit; done; }; switchtorecent"
[fetch]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment