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,170 points
172 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,160 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,160 points
151 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 21, 2020 in Git & GitHub by MD
• 95,160 points
57 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,160 points
96 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 in Git & GitHub by MD
• 95,160 points
62 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,064 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,160 points
292 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,160 points
628 views