Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Git and Subversion, how do I find out the current user at the terminal?

Tags:

git

svn

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?

like image 699
Thierry Lam Avatar asked Sep 11 '09 04:09

Thierry Lam


People also ask

What is Git SVN command?

git svn is a simple conduit for changesets between Subversion and Git. It provides a bidirectional flow of changes between a Subversion and a Git repository. git svn can track a standard Subversion repository, following the common "trunk/branches/tags" layout, with the --stdlayout option.


1 Answers

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.

like image 73
Dipstick Avatar answered Oct 03 '22 04:10

Dipstick