Visual Studio - AppBuilder - Git Hub - .sou file issue -
i started project on telerik's appbuilder , started working on project in visual studio 2015. able commit. note have desktop , laptop, both vs2015 , working on project. so, able commit , sync on desktop , laptop few weeks ago. then, made changes on desktop , tried checkin, , "unable access .suo file writing" when trying sync , have been unable checkin git since on desktop, on laptop can push/pull w/o issue.
any idea what's wrong , how fix it?
you should not checking in .suo
files git, contain user data should not shared. instead, should marking them "ignored" git, never checked in , never detected untracked file.
however, git ignore files not in repository. must remove them before can ignore them.
first, add .suo
file .gitignore
. create .gitignore
file @ base of git repository, , add following line it:
*.suo
or, better yet, download visualstudio.gitignore
file , name .gitignore
, placing @ root of repository. file excellent set of .gitignore
rules visual studio projects. (and if had created project in visual studio have prompted set - don't worry, it's not late!)
next, remove .suo
file repository. if .suo
file in question mysolution.suo
:
git rm --cached mysolution.suo git commit -m"remove .suo file" mysolution.suo
now when visual studio changes .suo
file, not prompted add or check in.
Comments
Post a Comment