Stash Solving
Hello,
I work on a project, in Blazor, and in Git I needed to push to upload the code to Azure, but there it only asked me to do Pull. I did Pull, I wanted to send the code that Merge gave me, but these Stashs came up. I wanted someone to help me because I am a beginner with C# and even more with coding and this is the first time such a case has happened.
4 Replies
@Ajetekrasniqi is the issue that you don't understand what stashes are?
stashes are a way for you take uncommitted work out of the repo without losing it
in this case you ran into stashes because git does not let you pull when there's uncommitted work
a common pattern is to stash your unsaved changes, pull, then pop the stash, restoring the changes
And how can I do that? Just to start unsaved changes, and all others you said? And I can Marge my code
unfortunately I'm not familiar with VS' git UI, as I usually use the git cli myself
if you open a terminal in your project directory and run
git stash list
what does it show?
also git status
if you have already merged then the stash should not really have any more changes? with a clean working copy you can try to right click->apply and see if anything differs