研究了一下git的使用方法记录一下 免得忘了。
![](https://img.haomeiwen.com/i13517457/8251c119329ef8ee.png)
![](https://img.haomeiwen.com/i13517457/dc6c0c1d332c9720.png)
![](https://img.haomeiwen.com/i13517457/188e0cbbf79b832b.png)
然后在命令行窗口下输入代码。
git init
git add .
git commit -m "说明文字"
后面的步骤需要看在github上新建的仓库的HTTPS地址是多少。
![](https://img.haomeiwen.com/i13517457/9627a32d247749c9.png)
然后在git命令行窗口下输入以下代码:
git remote add origin https://github.com/varenyzc/DGUTAirMouse.git
git push -u origin master
![](https://img.haomeiwen.com/i13517457/c21f8a21b388f43e.png)
推送完成后会让你输入github的用户名和密码。这里因为我已经输入过用户名密码,所以不用重复输入。
![](https://img.haomeiwen.com/i13517457/ed53f2d99ba414a9.png)
输入完就推送到github上啦。大功告成!在其他平台如gitlab、gogs等开源网站操作类似,只需修改HTTPS地址即可。
也可以follow一下我的github,电子专业转行cs:https://github.com/varenyzc
enjoy yourself!
网友评论