Jump to content
jimfog

git username

Recommended Posts

Am in the beginning of learning git.

 

I have set up a mail and a username but I want to know with which command I can see what are the above.

 

I am talking about a command in git bash.

Surely I can find what I want by looking at the config file, but I want to get the info from git bash command line utility

Share this post


Link to post
Share on other sites

You can use

git config --get user.name
and similarly for email.See
git --help config
for details.

Share this post


Link to post
Share on other sites

thanks both...

Share this post


Link to post
Share on other sites

I tried to git init but I could not. I mean in the git bash I do see the init taking place but(with the dir listed and the word master in brackets in the right )

in the folder where I should find the .git folder I do not.

 

What might be wrong?

Share this post


Link to post
Share on other sites

I tried to git init but I could not. I mean in the git bash I do see the init taking place but(with the dir listed and the word master in brackets in the right )

in the folder where I should find the .git folder I do not.

 

What might be wrong?

Ah...now I see it. It was hidden.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...