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
本文档详细介绍了如何使用Git进行Flask Web项目的版本控制管理,包括配置Git、克隆仓库、查看状态、更新文件、提交更改及推送至远程仓库等基本操作。
548





