简体   繁体   English

git 项目未显示在 github 页面上

[英]git project not showing on github page

I recently made a project from scratch and uploaded into GitHub.After pushing i my files did not get uploaded into the folder i created in GitHub.我最近从头开始制作一个项目并上传到 GitHub。推送后我的文件没有上传到我在 GitHub 中创建的文件夹中。 However showing a notification to compare and pull requests.但是显示比较和拉取请求的通知。 When I press compare and pull request page shows the code with no option to compare and pull request.当我按下比较和拉取请求页面时,会显示没有比较和拉取请求选项的代码。 This happens when I only send files from scratch if contribute to any other PROJECT no issues.当我只从头开始发送文件时,如果对任何其他项目没有任何问题,就会发生这种情况。 Also, I can upload files directly to Github (not via terminal using upload button)另外,我可以将文件直接上传到 Github(不是通过终端使用上传按钮)

在此处输入图像描述

Attaching screenshot附上截图

在此处输入图像描述

You are pushing your code to a branch named master (and a branch named navbar ), but the default branch GitHub created for your project is named main .您将代码推送到名为master的分支(和名为navbar的分支),但为您的项目创建的默认分支 GitHub 名为main

You can also go into your project settings and to change which branch is the default that is shown when you initially visit the web interface.您还可以将 go 放入您的项目设置中,并更改初始访问 web 界面时显示的默认分支。

Above the list of project files, there is a drop down menu that you can use to choose which branch you are currently looking at.在项目文件列表上方,有一个下拉菜单,您可以使用它来选择您当前正在查看的分支。

It's because you pushed it to other branches.这是因为你把它推到了其他分支。 Click the branches menu and you'll get the 3 options单击分支菜单,您将获得 3 个选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM