How to save files in Git Stash

0 votes

Hi Team,

I have files in the Git repository. I want to save the files in Git Stash. How can I do that?

Nov 20, 2020 in Git & GitHub by akhtar
• 38,240 points
275 views

1 answer to this question.

0 votes

Hi@akhtar,

Git Stash temporarily save changes you've made to your working copy, so you can work on something else, and then come back and re-apply them later on. You can use the below command to save a file in Git Stash.

$ git stash save file2.txt 
Saved working directory and index state On master: file2.txt

answered Nov 20, 2020 by MD
• 95,340 points

Related Questions In Git & GitHub

0 votes
1 answer

How to apply a Stash in Git?

Hi@akhtar, In order to apply your Git stash ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,340 points
254 views
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,340 points
175 views
0 votes
1 answer

How to list all the files in a commit in Git?

Hi@akhtar, Using git diff-tree is considered as a preferred way ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,340 points
240 views
0 votes
1 answer

How to ignore certain files in Git?

Hi@akhtar, The problem is that .gitignore ignores just files that ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,340 points
122 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
1,592 views
+2 votes
1 answer
0 votes
1 answer

How to stash untracked files of the current working directory in Git?

Hi@akhtar, In order to stash untracked files, add ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,340 points
3,937 views
0 votes
1 answer

How to find the hidden files in the Git repository?

Hi@akhtar, To find the hidden files in the ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,340 points
4,921 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP