How to apply a Stash in Git

0 votes

Hi Guys,

I have saved one file in Git Stash. Now I want to apply the Stash in a different branch. How can I do that?

Nov 20, 2020 in Git & GitHub by akhtar
• 38,260 points
778 views

1 answer to this question.

0 votes

Hi@akhtar,

In order to apply your Git stash to your current working directory, use the “git stash apply” command and specify the stash you want to apply. If you don’t specify any arguments to the apply command, the top of the stack will be applied.

$ git stash apply stash@{stash_index}
answered Nov 20, 2020 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,890 points
2,456 views
0 votes
1 answer

How to give a file execute mode permissions in Git?

You can easily do this in one ...READ MORE

answered Aug 7, 2018 in Git & GitHub by Sophie may
• 10,620 points
21,049 views
0 votes
1 answer

How to add a remote git repository in Jenkins

Follow these steps: Step 1 Go to Manage ...READ MORE

answered May 23, 2019 in Git & GitHub by Alok
13,652 views
0 votes
1 answer

How to set a username in the Git server?

Hi@akhtar, In the Git server, you need to ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,460 points

edited Nov 19, 2020 by MD 824 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

How to recover a dropped stash in Git?

Hi@akhtar, You can create a separate branch for ...READ MORE

answered Nov 22, 2020 in Git & GitHub by MD
• 95,460 points
761 views
0 votes
1 answer

How to untrack a file in Git?

Hi@akhtar, You can untrack your file from git ...READ MORE

answered May 4, 2020 in Git & GitHub by MD
• 95,460 points
13,467 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP