git 简单使用方法


1.从命令行创建新的仓库

touch README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://git.u3v3.com/myname/myfirstfaskweb.git
    git push -u origin master

2.从命令行推送已经创建的仓库

git remote add origin https://git.u3v3.com/myname/myfirstfaskweb.git
    git push -u origin master

3.查看文件状态

git status


4.跟踪新文件

git add README.md


5.提交更新

git commit


6.推送更新

git push


right