Gettysburg
Gettysburg

Reputation: 55

Save commits without push

What happens to commits without push when the disk will formatted? I have some commits, but my Winchester was broke. Can I restore my commits in another device?

Upvotes: 1

Views: 50

Answers (1)

Marlon Abeykoon
Marlon Abeykoon

Reputation: 12475

The local commit information are stored in the .git directory in your project. So if that gets deleted or if you format the disk the commit data is gone. You have to apply the same disk recovery methods/tools to recover that.

Upvotes: 2

Related Questions