I have some questions about Git.

Asked 1 years ago, Updated 1 years ago, 73 views

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?

git github commit push git-log

2022-09-22 14:52

4 Answers

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~


2022-09-22 14:52

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


2022-09-22 14:52


2022-09-22 14:52

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.


2022-09-22 14:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.