Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Vscode Git commit history shows upper folder's change

enter image description here

I created flutter new project in path /Users/hayat/flutter_development/flutter_project/flutter_application_1.

But VScode shows 10k changes in commit source control.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

when I see those changes, it shows all changes in /Users/hayat/, which is upper folder than pwd.

I don’t know why it happens and how to make it show only changes of flutter_application_1.

>Solution :

Your probably made a git init or at least have a .git folder in your /Users/hayat/ folder.

Best thing you can do is to delete the .git folder in /Users/hayat/, then you will be able to commit normal changes in your project folder. If VSCode don’t detect any git repository, then, use the git init command to link your application folder to your remote git repository.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading