为什么要“初始化存储库”?在 VScode 上不可用
我有一个作业要求我创建一个 markdown 并将其推送到 GitHub。我的问题是“初始化存储库”没有显示。 .md 文件保存在链接到 Github 的文件夹中,但仍然无法初始化它。帮助!这是屏幕截图缺少初始化存储库
I have an assignment that require me to create a markdown and push it to GitHub. My issue is the "Initialize Repository" is not showing. The .md file is saved in the folder linked to Github but it is still can't initialize it. Help! Here is a screenshot Missing Initialize Repository
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,当尝试推送现有文件夹时,
Initialize Repository
选项将始终丢失。解决此问题的一种方法是在感兴趣的文件夹中打开 VS Code 中的终端,然后尝试以下操作:这适用于我需要连接到 GitLab 源的每个项目。
As far as I have seen, when trying to push an existing folder, the
Initialize Repository
option will always be missing. One way to approach this is to open your terminal in VS Code while already within the folder of interest, and try the following:This has worked for every project I needed to connect to a GitLab origin.