Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Introduction


This post describes SAP Web IDE Git Stash feature.


If you are new to git functionality in Web IDE, please refer to How to Use the SAP Web IDE Git Client.



Stash Changes to Save Your Work


I have been working on part of my project, and I want to switch branches for a bit to work on something else.


I don’t want to commit half-done work and I want to get back to this point later.


 


All my changes appear in the staging table [1] .


Pay attention that at this stage the Show Stash button is disabled [2].


To stash my commit, I select Stash [3].



A Stash dialog box appears, where I can add an optional message [4].


After pressing OK, the stash operation is completed . Now I can continue to work on something else.




Pay attention that at this stage the Show Stash button is enabled [5] and the staging table is empty [6].


I finished working on the other things and now I am ready to get back to the changes I have stashed.


To see the stash list, I click on Show Stash [5].



A Show Stash dialog box appears, where I can see my latest stash changes [7].


Now I can select to Apply, Pop or Drop my latest stash [8,9,10].




To apply my stash, I select Apply [8].

 

Pay attention that at this stage the Show Stash button is enabled [11]. This means my files are still in the stash list available to apply, pop or drop.


Taking a look at the staging table shows that it contains the files I previously stashed  [12].



OK, lets delete the stashed files from the stash list.


I'll click Show Stash button [11].


A Show Stash dialog box appears, where I can see my latest stash changes [7].


I'll select to Drop my latest stash [10].


Pay attention that at this stage the Show Stash button is disabled [2].


 

** Of course, Pop/Apply from the Stash List can lead to conflicts that you will have to resolve **

 

Thank You for reading this.


Feel free to contact me if you have any questions.


Regards,


Tomer



1 Comment