User Tools

Site Tools


mac:git

Differences

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]
127.0.0.1 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 user.name "Craig Buchek"+FULL_NAME=$(dscl . -read $HOME RealName | tail -1 | perl -pe '​chop'​) 
 +git config --global user.name "$FULL_NAME"
 git config --global user.email "​craig@boochtek.com"​ git config --global user.email "​craig@boochtek.com"​
  
mac/git.txt · Last modified: 2013/10/26 13:51 by Craig Buchek