0 votes
39 views
in Technology by (230k points)

 What is git stash drop?

1 Answer

0 votes
by (230k points)
Git ‘stash drop’ command is used to remove the stashed item. It will remove the last added stash item by default, and it can also remove a specific item if you include it as an argument.

Now give an example.

If you want to remove a particular stash item from the list of stashed items you can use the below commands:

git stash list: It will display the list of stashed items like:
[email protected]{0}: WIP on master: 049d078 added the index file
[email protected]{1}: WIP on master: c264051 Revert “added file_size”
[email protected]{2}: WIP on master: 21d80a5 added number to log

If you want to remove an item named [email protected]{0} use command git stash drop [email protected]{0}.

Related questions

0 votes
1 answer 28 views
asked Nov 4, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 20 views
0 votes
1 answer 22 views
asked Nov 4, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 25 views
0 votes
1 answer 20 views
asked Nov 2, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 21 views
0 votes
1 answer 31 views
0 votes
1 answer 19 views
0 votes
1 answer 38 views
0 votes
1 answer 27 views
0 votes
1 answer 23 views
0 votes
1 answer 28 views
0 votes
1 answer 18 views
0 votes
1 answer 35 views
0 votes
1 answer 25 views
0 votes
1 answer 22 views
asked Nov 2, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 46 views
asked Nov 2, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 36 views
asked Nov 4, 2020 in General by JackTerrance (230k points)
0 votes
1 answer 18 views
asked Nov 3, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 19 views
asked Nov 2, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 28 views
asked Oct 4, 2020 in Technology by Editorial Staff (51.6k points)
...