tags:

views:

84

answers:

1

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?

+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