1,clone code存储的路径
eg: cd /Users/dragon/Desktop
2,去git拷贝地址进行clone
eg: git clone http://elvin_luo@152.30.29.110:808/r/Page_mac/ButtonDemo.git
3,重新cd
eg: cd /Users/elvin/Desktop/ScanButton
3-1,切换分支git checkout -b xxxxx分支名
4,将要上传的文件拷贝到 步骤3路径下的文件夹
5,本地添加
eg: git add .
6,添加备注
eg: git commit -m “第一个注释”
7,推到Git仓库
eg: git push origin master(main) eg: git push -u origin
8,删除文件
eg: cd /Users/elvin/Desktop/ScanButton eg: git rm Info.pliat
9,删除文件夹
eg: cd /Users/elvin/Desktop/ScanButton eg: git rm -r Resources
10,更新pull
Eg: git pull origin
11,回滚到那一次
Git reset --hard commit_id(提交的id)