ali_cr8
ali_cr8

Reputation: 25

Git push doesnt do anything over HTTPS

When im pushing to my remote repository through https ,there is no response from the terminal. This happens:

screenshot

git push origin2 master
# noting

SSH works fine and I am able to push.
Any idea why this would happen?

Upvotes: 1

Views: 2123

Answers (2)

iWannBeDev
iWannBeDev

Reputation: 11

I just had the same problem and solved it using the GitHub Desktop app. When you run it go to the Repository menu and choose Open in Command Prompt. Then try to push your commit with: git push command It will now ask you how you wish to authenticate and give you 2 options:

  1. Web Authentication <- that's the one you need
  2. Personal token

choose 1 and hit ENTER, it will direct you to the GitHub page where you can grant relevant permission. That's all. Happy coding :)

Upvotes: 1

VonC
VonC

Reputation: 1323913

Instead of using GIT_TRACE1, as suggested in comments, use (with a recent enough Git), GIT_TRACE2_EVENT

set GIT_TRACE2_EVENT=1
git push
# to cancel traces
set GIT_TRACE2_EVENT=

Check also the output of git remote -v to check:

  • that origin2 does exist
  • that it is an HTTPS URL

Upvotes: 3

Related Questions