C
C#17mo ago
Angius

git changes

See where those changes are, and if maybe some of those files/directories should be gitignored
33 Replies
vitukjkkk
vitukjkkk17mo ago
prob the changes are on disk c there are 19k
Angius
AngiusOP17mo ago
Did you initialize the repository at the root of your C drive...?
vitukjkkk
vitukjkkk17mo ago
no i put it on an onedrive folder only did this the changes are all on python extensions they are at disk c, on .vscode, python extensions all changes i already deleted them but the changes still are on source control
Angius
AngiusOP17mo ago
Why were some Python extensions in your C# project...? Anyway dotnet new gitignore if you don't have a gitignore yet Then git rm -r --cached . to untrack all files And git add . to track them back, accounting for the gitignore
vitukjkkk
vitukjkkk17mo ago
cuz i already coded on python and there are on my git
Angius
AngiusOP17mo ago
Why not create a new repository for this project...?
vitukjkkk
vitukjkkk17mo ago
but i created i've to initalize a new rep?
Angius
AngiusOP17mo ago
Why do you have Python files in the same directory as your C# project, then?
vitukjkkk
vitukjkkk17mo ago
i just putted on another folder
Angius
AngiusOP17mo ago
So your repository is initiated at the root of all those?
vitukjkkk
vitukjkkk17mo ago
the changes are just on it python extensions
Angius
AngiusOP17mo ago
Like,
/my-project
|— .git
|— .gitignore
|— MyCsharpProject
|— MyPythonProject
/my-project
|— .git
|— .gitignore
|— MyCsharpProject
|— MyPythonProject
? What Python extensions? What are they doing in your C# project directory?
vitukjkkk
vitukjkkk17mo ago
i'm using vscode
Angius
AngiusOP17mo ago
So add .vscode to the gitignore Though it should not contain any extensions Just some config files
vitukjkkk
vitukjkkk17mo ago
C:\Users\vitto\.vscode>git add .gitignore fatal: pathspec '.gitignore' did not match any files what's wrong
Angius
AngiusOP17mo ago
You not adhering to my instructions is what's wrong Nowhere, at any point, did I mention git add .gitignore command
vitukjkkk
vitukjkkk17mo ago
hm
Angius
AngiusOP17mo ago
Also You seem to have the repository at the root of your user directory Or something .vscode is, I guess, where VS Code is installed I have no idea what the fuck are you doing there
vitukjkkk
vitukjkkk17mo ago
wtf
Angius
AngiusOP17mo ago
You should not be touching your VS Code installation Let along storing it in a Git repo
vitukjkkk
vitukjkkk17mo ago
hm i did the commands
Denis
Denis17mo ago
Is that where your repo is located?
vitukjkkk
vitukjkkk17mo ago
no prob its when i was on my first times and the git sync
Angius
AngiusOP17mo ago
Why are you even trying to do anything there
Denis
Denis17mo ago
Well create the gitignore in the folder where you have your repo Not in the vscode folder
vitukjkkk
vitukjkkk17mo ago
bro i didn't putted it the changes just loaded
Angius
AngiusOP17mo ago
what
Denis
Denis17mo ago
Confusion 📈 Ok, show a screenshot of the list of changes you see in vscode
Angius
AngiusOP17mo ago
And that's the last we heard of them
vitukjkkk
vitukjkkk17mo ago
bro called zz just chill u are going nervous by nothing i fix that it was just a branch
vitukjkkk
vitukjkkk17mo ago
No description
mg
mg17mo ago
Your git repository is contained within a folder called .git. Everything in the same directory as that .git folder, and everything in any folders contained by that folder, will be "seen" by git. Where is that .git folder? What folder is it in?
vitukjkkk
vitukjkkk17mo ago
LC# now its fixed

Did you find this page helpful?