Kri*_*iss 6 git github github-desktop
我正在尝试用于Windows的GitHub桌面.我是从https://desktop.github.com/下载的.使用我的GitHub凭据登录并使用+在本地创建一个git存储库,创建并添加我本地计算机上项目的路径,我想将其作为git存储库启动.我将node_modules添加到.gitignore文件中,剩下16个文件,我写了一个"摘要"消息并按下"commit to master"按钮.它现在说"没有变化",所以我按下"发布",我读到它应该给我创建公共或私人存储库的选项.但相反,我只是看到"同步",它永远不会停止或上传任何东西到我的GitHub帐户.
然后我不得不关闭桌面应用程序以使其停止.接下来我尝试在GitHub上创建一个空的存储库并将ssh然后将https地址添加到存储库设置/ remote(根据Github Desktop:无法发布),但同样的事情再次发生.
我还尝试了git shell的'git sync'(根据Github桌面同步无限旋转),它可以在shell中运行,但它不能修复GitHub桌面应用程序; 下次我尝试按下同步按钮时它就会继续旋转.
有谁有想法吗?
小智 0
唯一的解决方案似乎是访问 GitHub.com:
1. delete your old repository.
2. create a new repository of the same name, make sure to add the readme file.
3. clone the repository back to your computer, but give it either a new local name or a new location.
4. copy and paste the files from your old local repository to the new one.
5. commit and sync the files.
Run Code Online (Sandbox Code Playgroud)
虽然很麻烦,但确实有效。
| 归档时间: |
|
| 查看次数: |
6038 次 |
| 最近记录: |