簡體   English   中英

Git / Github不允許我推送到新分支

[英]Git/Github not letting me push to new branch

我創建了Rails應用程序的新分支來進行一些更改以修復一些前端錯誤。 我不明白為什么,但是git / github不允許我推送到該分支。 輸入我的github密碼后,它一直掛在那里,直到我取消了它。

% git status
# On branch fefixes
nothing to commit (working directory clean)
% git push origin fefixes
Username for 'https://github.com': {me}
Password for 'https://{me}@github.com':
^C

我在這里做錯了什么? 絕對是我,因為github的狀態目前很好。

檢查您的遠程“來源”以確保URL看起來正確:

git remote -v

接下來,嘗試列出遙控器的內容:

git ls-remote origin

如果上述步驟都順利,那么Git當然可以連接到GitHub托管的存儲庫。 再次嘗試git push origin fefixex

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM