- Git global setup:
git config --global user.name "your user name"
git config --global user.email "your Email"
- Create Repository
mkdir folder
cd folder
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin GitURL
git push -u origin master
- Existing Git Repo?
cd existing_git_repo
git remote add origin GitURL
git push -u origin master