0

I was working on a project on my ubuntu server, after some changes, I tried to push my new code today, and faced the following error:

Since Git 2.0, Git defaults to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/zabir-nabil/audioperm.git/': The requested URL returned error: 403

There are some relative path dependencies, so I don't want to make a copy of the code elsewhere. I have also created the token from GitHub, I also tried, git config --global push.default matching but it's not working.

How to push the code to my old repository?

torek
  • 389,216
  • 48
  • 524
  • 664
Zabir Al Nazi
  • 8,936
  • 3
  • 23
  • 47

0 Answers0