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."