1.cd到你工作文件夹
![7798479-c2d8fe7064b9c2bf.png](https://i-blog.csdnimg.cn/blog_migrate/db34649bfc0c48cdf45847949e89ec05.webp?x-image-process=image/format,png)
2.将Git上面的源码克隆下来git clone https://github.com/SuperPlus.git
![7798479-816d29c99f39410e.png](https://i-blog.csdnimg.cn/blog_migrate/fb7801568c65eb6a47ac9c46220bf626.webp?x-image-process=image/format,png)
3.cd进去这个文件夹
![7798479-af5f65dba3c2cb04.png](https://i-blog.csdnimg.cn/blog_migrate/c0a38e5c071fee3279152ed2d361a15f.webp?x-image-process=image/format,png)
4.git checkout -b dev 新建并切换到本地dev分支
git pull origin dev 本地分支与远程分支相关联
![7798479-39cede9bcde2bc03.png](https://i-blog.csdnimg.cn/blog_migrate/f3e462c78756195b564b869af2ed9eb1.webp?x-image-process=image/format,png)
5.如果在执行Git push的时候出现错误:fatal: The upstream branch of your current branch does not match the name of your current branch.
那么执行:git push -u origin dev 即可!!!!!