一、 你在项目所在文件夹的空白处,鼠标右键,点击git bash here 会自动进入该目录下
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/149ecf1e56779be55669c869f0521d29.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fab079b7b6559a98d6d4d192ffff4831.png)
二、 如果你遇到push reject
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/76b7b1960b589aae57b5c3a69130a9c8.png)
输入下面的命令:
git pull origin master –allow-unrelated-histories
git push -u origin master -f
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7aba7c6f1c530fa42e2a65441d1e9748.png)
再次push就好了。
三、 如果你想删除本地仓库怎么办?
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/006666c57af941f36c672206eab3f2dd.png)
选中你要删除的GIt,点击上面的减号,然后ok
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/76eb7062f4079a2b726b85a52b579d7f.png)
然后进入项目目录中,删除.git文件
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/1c7fe218144d52b0efb163ead1cec851.png)
这样,你就可以从头再来了。
然后,如果你的git bash不能复制粘贴?
或许你可以试一试 ctrl + shift +F12(Ins)