Quantcast
Channel: How do I recover a dropped stash in Git? - Stack Overflow
Viewing all articles
Browse latest Browse all 55

Answer by Jaykumar Chaniyara for How do I recover a dropped stash in Git?

$
0
0

Step 1: Open project folder, Right click and open Git Bash here

Project folder - Git Bash

Step 2 : In the git console window hit below command
git fsck --no-reflog | awk '/dangling commit/ {print $3}'

Step 3 : Now enter this command - **gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

Step 4 : Right click on the commit and create a new branch

Create a new branch

Step 5 : After creating a new branch, Again Right click on that commit and click on 'Checkout branch'


Viewing all articles
Browse latest Browse all 55

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>