在GitHub上注册就不说了
创建项目也有引导,跳过.
下载gitbash也不说了...
打开gitbash以后 切换到你代码所在的目录.例如
cd /f/test
假设你创建的项目地址为: https://github.com/HolyRoy/flume-rabbitMq.git
然后依次输入
git add flume-rabbitMq/
git commit -m "test commit"
git remote add origin https://github.com/HolyRoy/flume-rabbitMq.git
git push -u origin master
如果倒数第二步提示 已经存在 就先删掉 git remote rm origin即可