I am fairly new to Visual Studio Code(VScode) and Git, and now I have a problem about "Source Control" in VScode. Please hlep me, thank you!
I used VScode to connect my server(Ubuntu 20.04.2 LTS) remotely via using local Window10, and everything was fine this afternoon(03/24 2022), but next I selected Source Control and clicked the button in the VScode.Picture-1
Then I clicked Initialize Repositor, and now the path is /root
.Picture-2
And then things started to go bad and suddenly there was "7K+" in source control.Picture-3
I would like to discard this changes but I failed to do it, and I want to cancel this changes and go back to the previous state. I need your help!
In addition to the operations described above, I was going to add the .gitignore
file, but it didn't solve the problem completely (just 7K+ --> 6K)