Though some people have encounter feelings about it like this friend of mind that says "it's something they invented to make all the rest fell stupid".
Any way, one nice thing about GIT it's is stash command.
In short let's say you are working on one branch and you have to do a quick fix on your master branch, BUT you're not yet ready to commit your changes.
Stash to the rescue......
This functionality allows you to put your changes aside, WITHOUT loosing them and without needing to commit them.
How it works:
This will stash your changes
git stash save
This will list your stash changes
git stash list
This will recover your stash changes
git stash apply your_stash_name
This will from your stash changes
git stash drom your_stash_name
where your_stash_name is listed when you run the stash list.
I understand that the concept is somehow weird but I can tell you it works just fine.
As usual I wasn't born with this knowledge so this is the brilliant page that I used when I run into this.
Hope you guys find it usefull.
No hay comentarios:
Publicar un comentario