以Idea项目库为例
-
在Idea文件根目录右键Git Bush Here
image.png
首先输入git init初始化仓库→然后git add . 把文件添加到临时区
image.png
然后输入git commit -m 语句将文件提交到仓库,注意引号中一定要添加说明哦!
image.png
切换到github,创建新的project

将git remote和git push分别复制到命令区域


这样就把本地代码上传到远程仓库的操作就完成了~

在Idea文件根目录右键Git Bush Here
首先输入git init初始化仓库→然后git add . 把文件添加到临时区
切换到github,创建新的project
将git remote和git push分别复制到命令区域
这样就把本地代码上传到远程仓库的操作就完成了~
本文标题:5 GitHub远程库初步
本文链接:https://www.haomeiwen.com/subject/zsxwuqtx.html
网友评论