Pekdon
07/07/2024, 11:08 AMhuwred
07/07/2024, 1:11 PMPekdon
07/07/2024, 1:11 PMMike Chambers
07/07/2024, 5:49 PMmedia
πjake williamson
07/07/2024, 10:06 PMtekoScott
07/08/2024, 6:51 AMSebastiaan
07/08/2024, 8:05 AM.gitignore
that combines the recommended .NET gitignore, plus Umbraco-specific things.
https://cdn.discordapp.com/attachments/1259466104712069161/1259782284756779008/image.png?ex=668cef2e&is=668b9dae&hm=b19cba059c59734f8c72d6508be7d64eb3be058aed8e0d9767bb3f2140e3163a&
https://cdn.discordapp.com/attachments/1259466104712069161/1259782284995858453/image.png?ex=668cef2e&is=668b9dae&hm=52e27acbdd44dacaca80714a4a57a89808235a28112af5283f8f599d9fe4bfbc&Mike Chambers
07/08/2024, 8:34 AMapp_plugins\*
from 3rd parties... as they should be treated as immutable (if not actually set by the developer) and delivered via nuget restore, for those that do still have physical files rather than the embedded resource approach.kdx-perbol
07/08/2024, 9:59 AMjake williamson
07/08/2024, 9:33 PMapp_plugins
π
the less stuff in the repo that should be coming from package restores etc the better!jake williamson
07/09/2024, 10:39 PMwwwroot/media
folder and do a git clean, any files you've uploaded will be blow away... if you back up your local work as well, the media can add bloat to the backup...
one way around this is to use the UmbracoMediaPhysicalRootPath
app setting to control where the media is stored:
https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/reference/configuration/globalsettings#umbraco-media-physical-root-path
e.g. we use user secrets so each dev can decide where the media is stored:
{
"Umbraco": {
"CMS": {
"Global": {
"UmbracoMediaPhysicalRootPath": "C:\\work\\sitefiles\\ClientName\\media"
}
}
}
}
means i can clean or blow away my local repo without the media that my local databases uses being blown away πSebastiaan
07/10/2024, 6:51 AM.gitignore
, which has /wwwroot/media
ignored. A git clean will only affect things that are not ignored.jake williamson
07/10/2024, 8:27 AM**/wwwroot/media
in our .gitnore
, i just checked out a repo, added a file to the media folder and ran the command i usually run to reset any local changes:
git clean -fxd
and the media files were deleted:
$ git clean -fxd
Removing src/Base.Web/wwwroot/media/
am i using the wrong git command π€Sebastiaan
07/10/2024, 8:30 AMx
!
https://git-scm.com/docs/git-clean
-x
Donβt use the standard ignore rules
jake williamson
07/10/2024, 8:35 AM-x
Donβt use the standard ignore rules (see gitignore[5]), but still use the ignore rules given with -e options from the command line. This allows removing all untracked files, including build products. This can be used (possibly in conjunction with git restore or git reset) to create a pristine working directory to test a clean build.
i think the pristine working directory
may have been where this came from i.e. the local is 100% set back to what the remote would be so any files that are being ignored that maybe causing problems are canned?
well there you go, learnt somit new today πMike Chambers
07/10/2024, 7:13 PMjake williamson
07/10/2024, 10:26 PM