在 git push origin main 之后,什么也没有发生 [英] After git push origin main, nothing happens
问题描述
我正在尝试将一个包含 100 多个文件的项目上传到 github.
I am trying to upload a project which has more than 100 files to github.
这些是 GitHub 希望我在 Git Bash 终端上执行的步骤.
These are my steps which GitHub wants me to do on Git Bash terminal.
cd <my project file>
git init -b main
git add .
git commit -m "First Commit"
git remote add origin <my remote URL>
git remote -v
git push origin main
按回车"后,终端屏幕上没有任何反应.我还尝试git clone"并复制了本地文件,但它不起作用.
After I press "enter", nothing happens on terminal screen. I also tried to "git clone" and copied the local files but it didn't work though.
我该如何解决这个问题?我究竟做错了什么 ?我是 Git 新手.
How can I solve this problem ? What am I doing wrong ? I am new in Git.
推荐答案
我相信您陷入了身份验证请求点.IE,因为你使用 git
而不是 https
它需要你的 github 用户名和密码.因为您使用的是 windows mingw64 系统,所以不清楚提示输入该密码的内容.但是您应该获得图形或文本帐户登录屏幕,而您没有看到它.这是你需要弄清楚的.或者更好的是,通过生成 ssh 密钥并将公钥放入您的 github 帐户,切换到使用基于 ssh
的登录.
I believe that you're stuck in an authentication request point. IE, because you're using git
over https
it needs your github username and password. Because you're on a windows mingw64 system, its unclear what would be prompting for that password. But you should either get a graphical or a textual account login screen, and you're not seeing it. This is what you need to figure out. Or better, switch to using a ssh
based login by generating ssh keys and putting the public key in your github account.
这篇关于在 git push origin main 之后,什么也没有发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!