0

I am trying to push a file to my GitHub repository. When I type git push -u origin master and press enter, nothing shows in the screen. When I press Ctrl+c, then it shows a box for username. When I type my username and press enter, it shows an error.

What can I do?

enter image description here

Matt
  • 12,848
  • 2
  • 31
  • 53
Anuprasad
  • 1
  • 3
  • No. Actually my problem is when i type this **git push -u origin master** and hit enter, i waited for 10 minuts and nothing showing in my screen.After that i press **ctrl+c** then that aksing for username and getting that error – Anuprasad Jun 20 '21 at 07:09
  • 2
    Can you try pushing via SSH instead of HTTPS? – knittl Jun 20 '21 at 07:31
  • try changing the origin URL. Run this command `git remote set-url origin git@github.com:anuprasadgc/game.git` after that try pushing the code – thelovekesh Jun 20 '21 at 07:42
  • i tried SSH insted of HTTPS but no way still getting that error – Anuprasad Jun 20 '21 at 07:54
  • https://stackoverflow.com/questions/67931716/git-push-doesnt-do-anything-over-https#comment120072116_67931716 – phd Jun 20 '21 at 11:13

1 Answers1

0

Found the solution

Steps

 Open your Control Panel

 Open Credential Manager

 Click Window Credentials

 Goto Generic Credential section there would be git url update username and 
 password

 Restart Git Bash and try again to push
Anuprasad
  • 1
  • 3