![]() You can also use the command line for the same.Ĭommand for git pop – git stash pop Create a temporary branch and push code thereĪnother solution is to create a temporary branch and commit your code there. Just like we stash in vscode, we can choose pop stash from sub-menu. Now you can unstash your code and merge with it. This will keep your local code in sync and up to date with remote. Choose stash from it and it will open a sub-menu.Īfter stash, you can pull the code from repository.Let’s check each solution in details – Stash your changes, pull the code and pop the stash Create a temporary branch and push code there.Stash your changes, pull the code and pop the stash.The error dialog appears like this – Solutions Generally this happens due to unstaged changes in your workspace and you still try to push. It is thrown by Vscode to indicate that the state of repository is having some issues and you need to check that out. ![]() ![]() Why Vscode throws this error?įirst of all, this is a git error. In this article we will look at the ways in which you can resolve this issue. VSCode throws error “clean your repository working tree before checkout” when you have unstaged changes and trying to push your code. ![]() Create a temporary branch and push code there.Stash your changes, pull the code and pop the stash. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |