📁 Files
No files yet. Create one!
! ConflictS StagedM ModifiedU Untracked
No files staged. Use
git add to stage changes.📊 Commit Graphcurrent branchmain
git add to stage changes.git cherry-pick <hash> to pick only the specific bug fix commits, ignoring later feature commits.git push origin release/v1.0) and the tag (git push origin v1.0.0). Tags are not pushed automatically with branches.git log --oneline. Main has 3 commits. The remote has 3 more: a bug fix (r4d5e6f) and two risky features (dashboard, API refactor). We need only the fix for the release.git reset --hard HEAD~1 to undo your last commit. Then you realized that commit had two hours of work in it.
The commit is gone from git log but Git never truly deletes commits — they live in the reflog for 90 days.
Find the lost commit hash in the reflog and restore it.Solve the problem by using the correct Git commands.