When using github, this is what I usually do:
git pullto make sure if everything is up-to-dategit add .to add all my changesgit commit -m "some message"to commit my changesgit pushto push my changes
After every change on my local files, I do the same above operations and go check on the website. The changes are there and everyone can see them. They exist on both local and remote repos. But once in a while, all my commits disappear and they're somehow discarded. I noticed that this happen whenever a colleague working on the same repo makes a change.
If this helps:
git logshows that my commits are loggedgit checkout mastersays that I am already on master.My Github profile says that I committed X number of commits to the repository, but when I click on them, it says "commits not found".
When on the master branch, are git push and git push origin master different?
I would like to know If I am doing something wrong here, so I can avoid doing it in future commits.