Today we know how the relation is between a client and a software developer.
clients may need the changes anytime and anywhere and can screw your beautiful honeymoon also.
think you are working on a latest technologies on your project and suddenly a unexpected call comes from a devil client saying there is a bug found.
what all you wana do is throw your mouse out i guess!!!!!!!!!
BUT STASH IS YOUR SAVIOUR HERE
1.you can now store your new design to which you are not yet fully committed.
2.just move your uncommitted work to a stack using below command
git stash (type in your project directory)
THIS WILL HIDE YOUR NEW CHANGES WHICH A CLIENT DONT NEED.( even i have experienced it)
3.now work on your old work and get rid of your bug send it back to client proudly ;):)
4. now to work again to your previous or new code just do
git stash apply
or
git stash pop
(it will restore your new code to your work and can work freely)
5. git stash clear
6.git stash clear
( it will clear all the the stash)
7.git stash drop<id> -------- drop a particular stash
stash are similar to stack and store iin top down manner.
kindly comment viewers
7.git stash drop<id> -------- drop a particular stash
stash are similar to stack and store iin top down manner.
kindly comment viewers
No comments:
Post a Comment
hi provide your opinions here