✅ VS is trying to put my whole user folder on github

I wish i was making this up. I can't change it. WDID.
No description
8 Replies
Jimmacle
Jimmacle8mo ago
do you have a local git repository right now?
Broken Christmas Toaster
i mean i have git but i never set it up for this project
Jimmacle
Jimmacle8mo ago
idk anything about vs's git integration, but go to the project folder and run git init in a terminal then git add ., git commit -m "Initial Commit", git remote add origin (your repository URL), git push --set-upstream origin master you'll need a gitignore before committing if you don't have one, dotnet new gitignore will add a reasonable default for C# projects
Broken Christmas Toaster
-Me- ~/source/repos/BeatBoothGame (master)
$ git add .
error: open(".vs/BeatBoothGame/FileContentIndex/34fbd019-db06-418e-ad82-ad50e77fffe6.vsidx"): Permission denied
error: unable to index file '.vs/BeatBoothGame/FileContentIndex/34fbd019-db06-418e-ad82-ad50e77fffe6.vsidx'
fatal: adding files failed
-Me- ~/source/repos/BeatBoothGame (master)
$ git add .
error: open(".vs/BeatBoothGame/FileContentIndex/34fbd019-db06-418e-ad82-ad50e77fffe6.vsidx"): Permission denied
error: unable to index file '.vs/BeatBoothGame/FileContentIndex/34fbd019-db06-418e-ad82-ad50e77fffe6.vsidx'
fatal: adding files failed
@Jimmacle sorry for ping - it gave me an error and idk what to do with it, why did it search for that file?
Jimmacle
Jimmacle8mo ago
probably because it's there and you didn't exclude it in the gitignore if you don't want it dunno about the permission issue, that's not a git specific thing
Broken Christmas Toaster
i just found out that this applies to all VS projects ;-;
Jimmacle
Jimmacle8mo ago
it's not a file you want to commit to your repo anyway
Broken Christmas Toaster
hold on it suddenly works i am not gonna question it
Want results from more Discord servers?
Add your server