Ubuntu Github repo

2021-03-09  本文已影响0人  Chao已被使用

1. cd to your forlder

cd /yourfolder/

2. check git information

git checkout -b branch_name # use -b to add a new branch
git branch # check branch info under this repo

switch branch

git checkout branch_name

3. update the file

git add file_name # update a file
git add . # update a folder

4. commit the update

git commit -m "comment_here"

5. push the update

git push -u origin branch_name
上一篇 下一篇

猜你喜欢

热点阅读