Parthiban Erusappan
Parthiban Erusappan

Reputation: 45

File history in git for local working copy

IS there any option to get file(not yet committed) changes history for working copy in git?

Because I've lost my local changes in one file in linux OS. Is there way to get by lost change again ? I've edited that file with vi command.

Upvotes: 0

Views: 120

Answers (2)

Claudio
Claudio

Reputation: 10947

If changes have not been committed (i.e., through git commit) or added to the index (e.g., through git add), then git cannot know anything about the changes you have made, and they are unfortunately lost.

Upvotes: 1

Viacheslav Kondratiuk
Viacheslav Kondratiuk

Reputation: 8889

You can try reflog. It can help.

Upvotes: 0

Related Questions