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,080 points
2,776 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 36,220 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
1 answer

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

The ‘git log’ command is your closest ...READ MORE

answered Jul 4, 2018 in Git & GitHub by Sophie may
• 9,250 points
42 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,250 points
22 views
0 votes
1 answer
+13 votes
2 answers
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
870 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
• 36,220 points
1,492 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.