Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hoax7/utils
- Owner: HoaX7
- Created: 2024-09-06T14:18:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T14:23:44.000Z (4 months ago)
- Last Synced: 2024-09-06T17:03:39.089Z (4 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.