Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a `WIP` on a stash commit?

What's a WIP means on a stash commit?

$ git stash list stash@{0}: WIP on master: 049d078 added the index file stash@{1}: WIP on master: c264051 Revert "added file_size" stash@{2}: WIP on master: 21d80a5 added number to log 

I'm just curious.

like image 664
Asim K T Avatar asked Aug 22 '16 04:08

Asim K T


People also ask

What is WIP in git stash?

From the git-stash documentation: A stash is by default listed as "WIP on branchname … ​", but you can give a more descriptive message on the command line when you create one. WIP stands for work in progress.

What is a WIP commit?

WIP Commit - convention for calling a temporary commit that is meant to be a temporary save point during the lifetime of a user story. Feature Branch - convention for calling a git branch that is used specifically to work on one user feature story.

Should you commit WIP?

Developers mark a commit or branch as WIP to signify that the commits cannot stand on their own, that you should not check out a particular commit or revert to it and expect working code. Basically, to avoid stashing important changes that may not yet be finished, commit them to a WIP branch to store them away safely.

How do I get my stash changes back?

To retrieve changes out of the stash and apply them to the current branch you're on, you have two options: git stash apply STASH-NAME applies the changes and leaves a copy in the stash. git stash pop STASH-NAME applies the changes and removes the files from the stash.


1 Answers

From the git-stash documentation:

A stash is by default listed as "WIP on branchname …​", but you can give a more descriptive message on the command line when you create one.

WIP stands for work in progress.

like image 165
martriay Avatar answered Sep 29 '22 19:09

martriay