git local commits disappeared when pulled origin -
steps:
cloned linux repository made changes in code committed code:git commit -m "commit message1" another commit: git commit -m "commit message2" >git log, displays 2 commits expected here, realized code not upto date, should test latest so, updated code: git pull origin now, when >git log see 1 commit says
merge branch 'master' of https://github.com/torvalds/linux
i understand happened. but, how see commits in step 5 back? please advise
actually git log shows pushed logs, not unpushed commits. see it:
git log origin/master..head to see un-pushed commit on branches try:
git log --branches --not --remotes git
No comments:
Post a Comment