# init repo
git init
# create a readme.md and add it
git add .
# commit
git commit -m "Add readme.md"
# keep what we have in master, create a new branch locally and switch to it
git checkout -b 'new'
# add a new test.py
git add test.py
git commit -m "Add test.py"
# change back to master , find no file test.py anymore
git checkout master
#merge the master branch with new
git checkout new
git merge master
# make a repo in github test, add remote with current repo
git remote add origin https://github.com/yaozeliang/test.git
# push to test.git
git push -u origin master
# check current remote repo info
git remote -v
# set my name and email
git config --global user.name "Tony"
git config --global user.email "tony@gmail.com"
#pull the remote repo
git pull