Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error message when trying to push the directory into my repository. #6

Open
fadarboye opened this issue Apr 15, 2024 · 0 comments

Comments

@fadarboye
Copy link
Owner

Getting error message when trying to push the directory into my repository.

I was getting error message below when trying to push my directory to GitHub repository.

Screenshot 2024-04-12 222108

  • I had to Switch your branch from main to another branch name which looks like it belongs to the local directory

  • Check your branch status with the command below
git branch
git checkout main

  • Then run the push command
git pull --rebase origin main
git push origin `Branch name`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant