Skip to content

A beginner getting an error when trying to push #1757

Answered by ChrisGk89
Pitxunet asked this question in Q&A
Discussion options

You must be logged in to vote

Since I didn't understood if your problem is solved but I want to help anyway. If your push didn't accepted there are many issues that you should check.

1. It is the password issue as you mention and you solved it creating a token.

3. You should check the permissions of the branch.

4. If your branch is behind the current branch check this solution: (assuming your local is in sync with origin i.e. you've run git fetch already):

$ git checkout mybranch

$ git branch --set-upstream-to=origin/mybranch mybranch

$ git merge main

$ git push origin mybranch

Another approach is:

$ git checkout main (you are switching your branch to main)

$ git pull

$ git checkout yourBranch (switch back to your b…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Pitxunet
Comment options

Answer selected by Pitxunet
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants