Simple command-line introductory tutorial:
Git global settings:
git config --global user.name "xxx"
git config --global user.email "[email protected]"
Create a git repository:
mkdir xxx
cd xxx
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:name/xxx.git
git push -u origin master
Existing warehouse:
cd xxx
git remote add origin [email protected]:name/xxx.git
git push -u origin master