config:
$ git config --global user.name "yourName"
$ git config --global user.email "yourEmail@.com"
get the repo:
git clone https://github.com/wzshenn/flaskWeb
OR
git init <directory>
get into the repo:
cd flaskWeb
edit the file:
can use vim
check the status:
git status
update the file:
git add README.md OR git add . (ps. to add all)
git commit -m "better description"
(option) git remote add origin https://github.com/wzshenn/flaskWeb.git
git push -u origin master OR git push
git pull origin master
see the history:
git log
create new file in local:
touch newfile.txt