Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commits pushed to Github through Github Desktop App(Windows) not showing up

I created two repositories through the Github website about a couple of hours ago. Then I went to the Github Desktop App, and made many commits to each of those two repositories. The process I had followed was:

  1. Create repository on Github website
  2. Go to Github Desktop App, and hit "clone" for the selected repository
  3. The repository was cloned to a "Github" folder in "Documents"
  4. Then I copied over my code files to each of the repository folders (through Windows explorer)
  5. In the Github Desktop App, I automatically got the "x uncommited changes" for the number of files I had copied over.
  6. I added a message in the "summary" and "description" section, and clicked on the "Commit" button at the end, and a blue check mark appeared.

However, now that I'm on another (ubuntu) computer and wanted to clone the 2 repositories on this, it appears that none of my commits were ever pushed to Github. The Github website also just shows the 2 repositores I had created at the very beginning, intialized with a readme.md. There's nothing else.

What went wrong?

like image 459
Manish Giri Avatar asked Aug 30 '15 00:08

Manish Giri


People also ask

Why are my commits not showing up on GitHub?

Your local Git commit email isn't connected to your account Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.

How do I see commit messages on GitHub desktop?

You can now search for commits from either the main search page or within a repository. Quickly discover who removed set -e or find commits that involved refactoring. Check out… You can now search for commits from either the main search page or within a repository.

Why is GitHub desktop asking for new commits from remote users?

If someone has made commits on the remote that are not on your local branch, GitHub Desktop will prompt you to fetch the new commits before pushing your changes to avoid merge conflicts. For more information, see " Syncing your branch ." Repository administrators can enable protections on a branch.

How to push commits to a remote repository in Git?

Pushing commits to a remote repository 1 Renaming branches. To rename a branch, you'd use the same git push command, but you would add one more argument: the name of the new branch. 2 Dealing with "non-fast-forward" errors. ... 3 Pushing tags. ... 4 Deleting a remote branch or tag. ... 5 Remotes and forks. ... 6 Further reading

Why can't I push to a private repository on GitHub desktop?

You may not have permission to access the repository or the repository may have been archived. Open options and verify that you're signed in with an account that has permission to access this repository. Note that I CAN push to other private repos on my account via GitHub Desktop, just not this particular one.

Why can't I push my local changes in Git push?

This means that you must retrieve, or "fetch," the upstream changes, before you are able to push your local changes. For more information on this error, see " Dealing with non-fast-forward errors ." By default, and without additional parameters, git push sends all matching branches that have the same names as remote branches.


Video Answer


1 Answers

  1. Create repository on Github website
  2. Go to Github Desktop App, and hit "clone" for the selected repository
  3. You should copy all your files to cloned repository.
  4. Click to view all uncommited changes.
  5. You have to write the summary and description and hit the button 'commit to "your branch name"'.
  6. And as a final step, you should push 'Sync button' at the upper right corner.
like image 103
0xdenishdev Avatar answered Nov 15 '22 21:11

0xdenishdev