0

When I do

git push --set-upstream origin main

It returned

fatal: unable to access 'https://github.com/RozuRoseMary/my-app.git~/': The requested URL returned error: 400

I use git version 2.35.1.windows.2

1
  • Try removing the trailing ~/ in .git/config for the origin upstream. Commented Apr 12, 2022 at 6:42

1 Answer 1

6

I had a similar problem. This may be due to the use of an SSH key.

Try deleting the link to the remote repository and add a new link to it using SSH

git remote rm origin

git remote add origin [email protected]:username/project.git

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.