分享代码到GitHub

1.本地安装git

2.项目文件夹右键Git bash here,弹出git命令窗口

3.输入git init,使项目加入Git管理

4.输入git add .,将项目全部内容添加到git

5.输入“git commit -m "test"(git commit -m "提交信息")

6.输入“git remote add origin https://github.com/yinandhuang/netty-telneto.git(git remote add origin 你自己的https地址),连接你的guthub仓库

7.输入“git push -u origin master”,上传项目到Github。这里会要求输入Github的账号密码,按要求输入就可以

原文地址:https://www.cnblogs.com/huangyin/p/8549562.html