As shown in the picture below, we did 'git add' and 'git commit -m' for the source projects called 'SapSampleCode' and 'SapSampleCodeTizen', and finally 'git push'. I also checked the record as below through 'git log'. However, it is not actually updated in the repository in GitHub. What's the problem?
The two commits were not pushed to the remote storage.
git push origin master
Go ahead.
I heard that you finally pushed the above, so maybe there was an error during the push. If someone else modified the same part, there could be a collision.
Learn collaborative workflows with Git Watch it when you have time~
Check the command window for the branch you are currently working with git branch -v.
$ git branch -v
iss53 93b412c fix javascript issue
* * master 7a98805 Merge branch 'iss53'
testing 782fd34 add scott to the author list in the readmes
In the example above, the master with the *
symbol has been checked out and is the branch you are working on.
You can then click on the red border area below on the Github page to switch to the branch you are working on to view your recent history.
Reference
It looks like this. 'your branch is ahead of 'origin/master' by 2 commits. I think what I commited before is at stake, but I don't know how to solve this. I'm not used to git.
© 2024 OneMinuteCode. All rights reserved.