Skip to content

Instantly share code, notes, and snippets.

View mccbryan3's full-sized avatar
🎃
Working from home

Bryan McClellan mccbryan3

🎃
Working from home
View GitHub Profile
'''
Class: UniformKeys
Class Summary: This Class is used to make key values
uniform and requires a list of dictionaries
Author: Bryan McClellan
Created: 6/22/2021
@joseluisq
joseluisq / stash_dropped.md
Last active March 28, 2024 11:59
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.