我对将本地创建的文件夹(项目)推送到Github有点好奇。可能吗? 请让我解释一下我已经做了什么。 我正在Windows 8.1 64位上使用Windows版Git。
- 使用init命令在Git本地根目录(即项目)中创建一个新项目。请参阅下面的bash命令和消息。
$ git init fresh-project 在D:/MyDev/projects/fresh-project/.git /
中初始化空的Git存储库2。
$ ls 新鲜项目/
-
**$ cd fresh-project**
-
**ls**
-
**$ git status**
在分支母版上
尚无提交
无需提交(创建/复制文件并使用“ git add”进行跟踪)
-
**Used $ code hipster.txt**
要通过打开VSCode并添加一些文本来创建文件。
-
**$ git status**
在分支母版上
尚无提交
未跟踪的文件: (使用“ git add ...”将要提交的内容包括在内) 时髦.txt
没有添加任何内容来提交但存在未跟踪的文件(使用“ git add”进行跟踪)
-
**$ git add hipster.txt**
-
**$ git status**
在分支母版上
尚无提交
要提交的更改: (使用“ git rm --cached ...”取消登台) 新文件:时髦.txt
-
**$ git commit**
提示:等待您的编辑器关闭文件... [main 2020-04-12T09:45:20.658Z] update#setState空闲 [main 2020-04-12T09:45:50.660Z] update#setState检查更新 [main 2020-04-12T09:45:50.870Z] update#setState空闲 [master(root-commit)b427f7c]使用时髦的ipsum添加新文件VSCode在2020年4月12日15:20完成 更改1个文件,插入1个(+) 创建模式100644时髦.txt
11。
$ git状态 在分支机构主管 没什么要提交的,正在工作的树很干净
After the 11th step I want to push the whole local repository to Github.com. I haven't created a
repository in Github with the name of 'fresh-project'.
What else do I have to do to make this to happen?
感谢和问候, 吉兰萨卡