IDEA使用git上传代码
GitHub新建空白仓库初始化上传
- GitHub官网

- 回到IDEA
echo "# mydemo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xiyanbeixue/mydemo.git
git push -u origin master

上传项目所有代码
git add .
git commit -m 基础框架代码
#上面初始化提交已经输入过远程仓库地址,此次不输入,否侧报错:fatal: remote origin already exists.
git remote origin https://github.com/xiyanbeixue/mydemo.git ()
git push -u origin master

上传指定文件
git add README.md
git commit -m 注释修改
git push -u origin master

1万+



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



