Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hoax7/utils

Repo contains essentials found throughout my coding journey
https://github.com/hoax7/utils

Last synced: about 1 month ago
JSON representation

Repo contains essentials found throughout my coding journey

Awesome Lists containing this project

README

        

# utils

# Recover file contents when you accidently run `git reset --hard` without commiting your changes.
- First, do not panic! it is possible to recover your file changes even though you have not added or committed them.
- Run `git fsck` to check if there are 'dangling blobs' that can be recovered. These are your file changes that were saved but not committed.
- Run `git fsck --lost-found` this will create a `.git/lost-found/others` folder which contains all your file changes in the hash.
- It is not possible to recover the file names but you can revoer its contents.
- Run script `recover.sh`.
- Once the script is complete you can go through the files to recover your content.