在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即可
本文详细介绍如何使用Git Bash将本地项目推送到GitHub上。包括切换目录、添加文件到暂存区、提交更改、设置远程仓库及推送代码等步骤。
1464

被折叠的 条评论
为什么被折叠?



