0%

git

新工程

1
2
3
4
5
6
7
git init 
git add . //.表示全部文件
git commit -m "frist commit"
git remote add origin https://github.com/usrname/repositoriesName.git
git push -u origin master
或者 git branch -M main
git push -u origin main

再次提交

1
2
3
git add . 
git commit -m "commit"
git push -u origin master