728x90

Q.

Viewed 73k times

 

32

5

In Visual Studio Code I made some changes which I do not want to commit en sync yet. However, after my holiday, I want to sync the files from the server (changes from my colleagues). So In Visual Studio Code I want to do a sync.

I get a message "Please clean your repository working tree before checkout"

What do I need to do to get the files of my colleagues without losing my own uncommitted changes?

 

A.

 

20

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

 

Share

Improve this answer

Follow

answered Aug 13 '18 at 7:46

Eimantas

47.2k15 gold badges127 silver badges164 bronze badges

add a comment

 

VSCode "please clean your repository working tree before checkout"

In Visual Studio Code I made some changes which I do not want to commit en sync yet. However, after my holiday, I want to sync the files from the server (changes from my colleagues). So In Visual S...

stackoverflow.com

 

 

II.

In my experience the best way to is to stash the changes like so: stash

sync the changes from your co-workers and afterwards do stash-pop like so: stash pop

You may also perform these actions in the terminal: git stash git stash pop

 

 

 

stackoverflow.com/questions/51817479/vscode-please-clean-your-repository-working-tree-before-checkout

728x90

문제 사항

위와 같이 VS Code에는

저장 시 자동으로 ES Lint 설정에 따라

JavaScript 문법 검사 후 Fix 하는 기능이 있다.

 

아니 근데 개발환경 다시 세팅하고 ES Lint 깔았더니 없다;;

 


해결 방법

명령 팔레트 > setting json 입력 > 기본 설정: 설정 열기(JSON) 선택

 

위와 같이 입력

  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true    ## ES Lint 저장 시 자동 fix 설정
  },
  "editor.formatOnSave": true,      ## document formatting 자동 fix 설정

+ Recent posts