git_git commonly used commands

git clone (address)

git config --global user.name"You Name"

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

Create Repository

mkdir learngit

cd learnait

pwd

The directory into a git repository

git init

Common Commands

git add

git commit -m "wrote a readme file"

example:

$ git add file1.txt
$ git add file2.txt file3.txt
$ git commit -m "add 3 files."

 

 

 

Guess you like

Origin www.cnblogs.com/wush-1215/p/12077938.html