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].

/wp-content/uploads/2015/06/stash_01_731828.jpg

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.

/wp-content/uploads/2015/06/stash_02_731829.jpg

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].

/wp-content/uploads/2015/06/stash_03_731850.jpg

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].

/wp-content/uploads/2015/06/stash_04_731851.jpg

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].

/wp-content/uploads/2015/06/stash_05_732400.jpg

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

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply