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,030 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,830 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
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
• 50,440 points
0 votes
1 answer
0 votes
1 answer

Is there a way to remove a directory from git repository?

This is simple, just follow the commands ...READ MORE

answered Jul 13, 2018 in Git & GitHub by Sophie may
• 9,940 points
0 votes
1 answer

How do I solve a Git checkout error: updating paths is incompatible with switching branches?

This error occurs when you are checking ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 9,940 points
+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,830 points