In Perforce, I can check who I am by running p4 info
, here's the p4 doc. What's the equivalent for Git and Subversion at the terminal?
views:
84answers:
1
+3
A:
Presumably you are after the git user name that will be attached to any commits:
$ git config user.name
Wilbert Wilbert
$ git config --list
user.name=Wilbert Wilbert
[email protected]
color.status=auto
color.branch=auto
...
Keys might appear more than once because Git reads from several files (/etc/gitconfig and ~/.gitconfig, for example). Git uses the last value for each key it sees.
Dipstick
2009-09-11 05:03:47