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
• 14,090 points
4,024 views

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
• 39,170 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 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 in Git & GitHub by Sirajul
• 16,640 points
61 views
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,530 points
34 views
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,380 points
110 views
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
1,335 views
+1 vote
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
• 39,170 points
1,984 views