Jump to content

git username


jimfog

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

Link to comment
Share on other sites

You can use

git config --get user.name
and similarly for email.See
git --help config
for details.
Link to comment
Share on other sites

thanks both...

Link to comment
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?

Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...