Skip to content
Discussion options

You must be logged in to vote

Hey @gemadhu! No, it's completely free and open source. Here are the exact steps to recover your code:

Step 1: Install it

If you have Rust/Cargo installed:

cargo install git-time-machine

If you don't have Rust, you can install it first with:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Step 2: Run it from your repo folder

Open your terminal, cd into the repo where you lost the commits, and run:

git-time-machine --all
The --all flag is important in your case since you have 60+ reflog entries. It will load all of them into the visual timeline.

Step 3: Find your lost commit

You'll see a scrollable list of every action Git recorded. Use the arrow keys (or j/k) to scroll thro…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@gemadhu
Comment options

Comment options

You must be logged in to vote
3 replies
@gemadhu
Comment options

@dinakars777
Comment options

@dinakars777
Comment options

Answer selected by gemadhu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants