通过 Github 桌面应用程序(Windows)推送到 Github 的提交未显示

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32292153/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:14:33  来源:igfitidea点击:

Commits pushed to Github through Github Desktop App(Windows) not showing up

windowsgitgithub

提问by Manish Giri

I created two repositories through the Github website about a couple of hours ago. Then I went to the Github Desktop App, and made many commits to each of those two repositories. The process I had followed was:

大约几个小时前,我通过 Github 网站创建了两个存储库。然后我转到 Github 桌面应用程序,并对这两个存储库中的每一个进行了多次提交。我遵循的过程是:

  1. Create repository on Github website
  2. Go to Github Desktop App, and hit "clone" for the selected repository
  3. The repository was cloned to a "Github" folder in "Documents"
  4. Then I copied over my code files to each of the repository folders (through Windows explorer)
  5. In the Github Desktop App, I automatically got the "x uncommited changes" for the number of files I had copied over.
  6. I added a message in the "summary" and "description" section, and clicked on the "Commit" button at the end, and a blue check mark appeared.
  1. 在 Github 网站上创建存储库
  2. 转到 Github 桌面应用程序,然后为所选存储库点击“克隆”
  3. 存储库被克隆到“文档”中的“Github”文件夹
  4. 然后我将我的代码文件复制到每个存储库文件夹(通过 Windows 资源管理器)
  5. 在 Github 桌面应用程序中,我自动获得了我复制的文件数量的“x 个未提交的更改”。
  6. 我在“摘要”和“描述”部分添加了一条消息,最后点击了“提交”按钮,出现了一个蓝色的复选标记。

However, now that I'm on another (ubuntu) computer and wanted to clone the 2 repositories on this, it appears that none of my commits were ever pushed to Github. The Github website also just shows the 2 repositores I had created at the very beginning, intialized with a readme.md. There's nothing else.

但是,现在我在另一台(ubuntu)计算机上并想克隆这 2 个存储库,看来我的提交都没有被推送到 Github。Github 网站也只显示了我一开始创建的 2 个存储库,用 readme.md 初始化。没有别的了。

What went wrong?

什么地方出了错?

回答by 0xdenishdev

  1. Create repository on Github website
  2. Go to Github Desktop App, and hit "clone" for the selected repository
  3. You should copy all your files to cloned repository.
  4. Click to view all uncommited changes.
  5. You have to write the summary and description and hit the button 'commit to "your branch name"'.
  6. And as a final step, you should push 'Sync button' at the upper right corner.
  1. 在 Github 网站上创建存储库
  2. 转到 Github 桌面应用程序,然后为所选存储库点击“克隆”
  3. 您应该将所有文件复制到克隆的存储库。
  4. 单击以查看所有未提交的更改。
  5. 您必须编写摘要和描述,然后点击“提交到“您的分支名称””按钮。
  6. 最后一步,您应该按下右上角的“同步按钮”。