-
Hi, I understand that I get to the webpage but I'm unable to access.. I don't understand why. I participated in another similar beginner project two days ago and it worked like a charm... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Well, I figured it out. There was a password issue so first I created a token (Thank you stack over flowers!). But then the fork kept getting behind before I had the time to push my version... Not sure if there is a solution for this or if I just need to wait for the repository activity to slow down? |
Beta Was this translation helpful? Give feedback.
-
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):
Another approach is:
Check this site for more: https://9to5answer.com/branch-is-behind-main 5. Other solution is to rebase.
First, rewinding head to replay your work on top of it...
You can check for more here: https://git-scm.com/book/en/v2/Git-Branching-Rebasing 6. Another solution is Stash This way you take completely the changes and clear the directory. When you are in the middle of something, you learn that there are upstream changes that are possibly relevant to what you are doing. When your local changes do not conflict with the changes in the upstream, a simple git pull will let you move forward. However, there are cases in which your local changes do conflict with the upstream changes, and git pull refuses to overwrite your changes. In such a case, you can stash your changes away, perform a pull, and then unstash, like this:
You can find all the information about stash here: https://git-scm.com/docs/git-stash Hope I help you in any way. Best wishes for your future projects. |
Beta Was this translation helpful? Give feedback.
-
If your are in VS code. Try to use Source Control (located at the left corner) It will help you sign-in and other staff easily |
Beta Was this translation helpful? Give feedback.
-
For beginners they can use the GitHub desktop. From others that have used it its easier than the command line. |
Beta Was this translation helpful? Give feedback.
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…