Java icon indicating copy to clipboard operation
Java copied to clipboard

Previously not pushed commits disappeared when a new commit is forcefully pushed by terminal

Open SamirPaulb opened this issue 4 years ago • 0 comments

Previously I was coping pasting my codes in GitHub and then saving that. I committed 90 files by this same process. But when I commit a new file by git command in terminal then it was showing an error but I forcefully pushed that. After that my previous commits disappears and it is now showing no remaining existence of that previous commits and the git pull is also not working here. If you have any Idea to recover that previous commits then help me to restore my previous commits. `` `git stash git checkout some-branch git stash pop

``git log --oneline -n1 # this will give you the SHA git checkout some-branch git merge ${commit-sha}`

-> not working

SamirPaulb avatar Feb 16 '21 19:02 SamirPaulb