mac os 下的git使用
一、将本地文件上传到gitee上
cd /Users/macbook/Desktop/learngit
git init
touch readme.md
git add "readme.md"
git status -s
git commit -m "gitos"
git remote add origin git@gitee.com:cscyep/learngit.git
git pull --rebase origin master
git push -u origin master
二、将本地文件夹上传到gitee上
cd nav
git init
git add *
git status
git commit -m "os"
git remote and origin git@gitee.com:cscyep/learngit.git
git pull --rebase origin master
git push origin master
三、将gitee上的项目克隆到本地仓库
cd /Users/macbook/Desktop/
git clone git@gitee.com:cscyep/learngit.git
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6a7671c11f04636487a4b9872416f3e9.png)