VSCode “please clean your repository working tree before checkout”

0 votes
I made some changes in Visual Studio code but I donnot want to commit and sync yet. But after a few days when I’m trying to commit and sync from the server it throws a message saying “Please clean your repository working tree before checkout".

What do I do?
Aug 14, 2018 in Git & GitHub by Hannah
• 18,040 points

2 answers to this question.

0 votes

Create a temporary branch and commit the changes. Or if you don't want to create a temporary branch - stash the changes.

answered Aug 14, 2018 by Kalgi
• 51,850 points
0 votes
One of the ways is to stash the changes and then you can sync the changes from your co-workers and then do a stash-pop. Not very sure if it works, I actually read it somewhere.
answered Apr 22, 2019 by Nikhil
Surprisingly it worked me for. Thanks!

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

error on branch master nothing to commit, working directory clean, when try to commit my changes.

Hi@akhtar,  If you already have a .git/ folder ...READ MORE

answered Apr 10 in Git & GitHub by MD
• 21,340 points
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 52,710 points
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
0 votes
1 answer
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
+2 votes
3 answers

Cloning the Git Repository on Eclipse (Transport Error)

File/Import... Select dialog * Git/Projects from Git * click next Select ...READ MORE

answered Jul 23, 2018 in Git & GitHub by Kalgi
• 51,850 points