User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mac:git [2012/12/10 22:41] external edit
mac:git [2013/10/26 13:51] (current)
Craig Buchek Get current user's full name programatically.
Line 13: Line 13:
 <code bash> <code bash>
 # you # you
-git config --global "Craig Buchek"+FULL_NAME=$(dscl . -read $HOME RealName | tail -1 | perl -pe '​chop'​) 
 +git config --global "$FULL_NAME"
 git config --global "​"​ git config --global "​"​
mac/git.txt · Last modified: 2013/10/26 13:51 by Craig Buchek