1. 在github上创建一个项目
![](https://img.haomeiwen.com/i8688746/e08604dcf0f1138e.png)
2.
![](https://img.haomeiwen.com/i8688746/cbcc9363e425fb5b.png)
3.创建完成之后:
![](https://img.haomeiwen.com/i8688746/554f70fe47149aed.png)
4.复制远程仓库地址,在本地创建本地仓库,使用git工具,官网下载即可
进入想要创建本地仓库的目录,右键git bash工具
![](https://img.haomeiwen.com/i8688746/bb6e97ee976bc9f7.png)
5.在bash中输入命令:git clone https://github.com/myyiko/test.git (注意使用自己的github仓库路径)
![](https://img.haomeiwen.com/i8688746/d373e270d8e2f5ce.png)
6.将你的代码文件放入仓库目录中,然后bash中进入到目录,查看状态:
![](https://img.haomeiwen.com/i8688746/d32477d5edb69cd7.png)
7.新增文件直接使用命令:git add '文件名' or git add . (前者是单个文件,后者是所有文件)
8.提交文件:git commit -m "修改信息"
9.推送代码:git push origin master
![](https://img.haomeiwen.com/i8688746/f7d0ab2dcd99c036.png)
PS:如果要删除github上的仓库,直接在对应仓库的setting中删除即可
![](https://img.haomeiwen.com/i8688746/d18463e54f39ab81.png)
拉至最低,找到危险区域:
![](https://img.haomeiwen.com/i8688746/dd3c5c88889d6143.png)
![](https://img.haomeiwen.com/i8688746/6ef8aad0e05a6e2e.png)
网友评论