Mac under git username and password problem

When using git, not prompted for a user name and mailbox in the system because the information has been saved

>> Keychain Access application to its operation

 

 

Commonly used commands:

See the usernames

git config user.name

View Mailbox

git config user.email

Set the user name

git config --global user.name "julian" 

Set-Mailbox

git config --global user.email "[email protected]"

Initialization warehouse

git init

Submit to git

the Add git.         // add to the staging area 
git the commit -m ' Remarks This submission ' 

Warehouse status

git status // view the state of the repository, what has been modified but not yet submitted 
git diff       // Check commit modify the contents of the current relative

 Remote repository information

git remote -v

Pull & Push

git pull
git push origin <tagname>

The current configuration git

cat .git/config

 

More detailed Via  https://www.cnblogs.com/Angxf/p/10956416.html

Guess you like

Origin www.cnblogs.com/julian-chang/p/11818269.html