Pushing code from github desktop doesn´t work #153731
Replies: 8 comments 3 replies
-
|
Welcome to GitHub! If you're seeing changes in GitHub Desktop but they are not updating on GitHub when you push, here are a few things to check and troubleshoot: 1. Verify Repository ConnectionMake sure your GitHub Desktop is correctly linked to your GitHub repository:
2. Ensure You Are on the Correct Branch
To check:
3. Check for Local Commits
To commit them:
4. Pull Before PushingIf someone else made changes to the repository, you may need to pull the latest changes before pushing:
5. Check for Authentication IssuesIf your push fails, you might see an authentication error. To fix it:
6. Try Pushing via Command LineIf GitHub Desktop isn’t working, try pushing using Git Bash (or Terminal):
7. Check for Repository Visibility
8. Remove and Re-add the RemoteIf the issue persists, remove and re-add the remote repository: git remote remove origin
git remote add origin https://github.com/your-username/Monte.git
git push -u origin mainFinal Steps
If you still have trouble, let me know what error message you see! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Rename the local folder to something like |
Beta Was this translation helpful? Give feedback.
-
|
If you're seeing changes in GitHub Desktop but nothing updates on GitHub after pushing, here are a few quick things to check: ✅ Check the repo URL: ✅ Did you commit your changes? ✅ Check the branch name: 🔁 Try “Fetch origin” or “Push origin” again: If none of that works, feel free to drop a screenshot — happy to help further! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I’m new to GitHub and trying to push my code using GitHub Desktop. I created a repository called “Monte” on GitHub and set up the same repository in GitHub Desktop. I can see the changes in GitHub Desktop, but when I try to push the code to GitHub, it doesn’t update. Any ideas on what might be wrong?
Beta Was this translation helpful? Give feedback.
All reactions