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,520 points
50,973 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
• 52,350 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

error: Could not read error: unable to read tree object HEAD nothing to commit (working directory clean)

Hi@akhtar,  This kind of error may occur if ...READ MORE

answered Apr 10, 2020 in Git & GitHub by MD
• 95,460 points
8,878 views
0 votes
1 answer

Please: Commit your changes or stash them before you can merge in Git.

Hi@akhtar, You can't merge with local modifications. Git ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,460 points
19,139 views
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, 2020 in Git & GitHub by MD
• 95,460 points
18,423 views
+1 vote
1 answer

How to remove untracked files from the current Git working tree?

Hi@akhtar, If you have thousands of file then ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
1,236 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 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
19,830 views
+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
• 52,350 points
24,256 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP