changes needed for the new local git approach
This commit is contained in:
parent
2cc4134426
commit
8ade042e30
|
@ -5,6 +5,10 @@
|
||||||
# > the private version contains sensitive data and more detailed configurations
|
# > the private version contains sensitive data and more detailed configurations
|
||||||
# >> specific ignores for it are located in .git_private/info/exclude (also hardlinked to .gitignore_private)
|
# >> specific ignores for it are located in .git_private/info/exclude (also hardlinked to .gitignore_private)
|
||||||
.git_private
|
.git_private
|
||||||
|
# The previous approach were work with an alias
|
||||||
|
# alias gitpublic='git --git-dir=.git_public'
|
||||||
|
# Now the approach is to use an script that switches the desired repo to .gitignore file and .git folder
|
||||||
|
|
||||||
|
|
||||||
# These are common ignores for all repositories
|
# These are common ignores for all repositories
|
||||||
/#recycle
|
/#recycle
|
||||||
|
@ -14,3 +18,52 @@
|
||||||
Mangrana.code-workspace
|
Mangrana.code-workspace
|
||||||
_deprecated
|
_deprecated
|
||||||
filebot/presets
|
filebot/presets
|
||||||
|
# these are related with the new local git switch approach
|
||||||
|
.gitignore_public
|
||||||
|
.gitignore_private
|
||||||
|
.gitConfigBackups
|
||||||
|
.iAmPublicRepo
|
||||||
|
.iAmPrivateRepo
|
||||||
|
|
||||||
|
############################################
|
||||||
|
## Specific ignores for public repository ##
|
||||||
|
############################################
|
||||||
|
filebot/desktop/config
|
||||||
|
filebot/licenses
|
||||||
|
filebot/old
|
||||||
|
filebot/xattr
|
||||||
|
homarr/bk
|
||||||
|
homarr/data
|
||||||
|
homarr/configs
|
||||||
|
ownServices/AfterDownloadCarerByFinish/config
|
||||||
|
ownServices/AfterFilebotMoveProcessor/config
|
||||||
|
ownServices/ArrModificationCapturer
|
||||||
|
ownServices/SonarrQueueFixer/config
|
||||||
|
overseerr/config
|
||||||
|
plex/config
|
||||||
|
plex_music/config
|
||||||
|
prowlarr/config
|
||||||
|
qbit/bk
|
||||||
|
qbit/config
|
||||||
|
qbit/manager/config
|
||||||
|
radarr/config
|
||||||
|
sonarr/config
|
||||||
|
tautulli/config
|
||||||
|
kometa/config
|
||||||
|
Media-Scripts
|
||||||
|
|
||||||
|
#envs with host sensitive info
|
||||||
|
ownServices/SonarrQueueFixer/.env
|
||||||
|
plex/.env
|
||||||
|
plex_music/.env
|
||||||
|
plex/old_env
|
||||||
|
radarr/.env
|
||||||
|
sonarr/.env
|
||||||
|
filebot/desktop/.env
|
||||||
|
homarr/.env
|
||||||
|
overseerr/.env
|
||||||
|
ownServices/AfterFilebotMoveProcessor/.env
|
||||||
|
prowlarr/.env
|
||||||
|
qbit/.env
|
||||||
|
qbit/manager/.env
|
||||||
|
tautulli/.env
|
|
@ -1,8 +1,33 @@
|
||||||
## Specific ignores for public repository ##
|
# Two repositories are bound to this folder
|
||||||
# Note: Always work with this repository with an alias, as follows:
|
# > the public version only expose infrastructure configuration
|
||||||
|
# >> specific ignores for it are located in .git_public/info/exclude (also hardlinked to .gitignore_public)
|
||||||
|
.git_public
|
||||||
|
# > the private version contains sensitive data and more detailed configurations
|
||||||
|
# >> specific ignores for it are located in .git_private/info/exclude (also hardlinked to .gitignore_private)
|
||||||
|
.git_private
|
||||||
|
# The previous approach were work with an alias
|
||||||
# alias gitpublic='git --git-dir=.git_public'
|
# alias gitpublic='git --git-dir=.git_public'
|
||||||
|
# Now the approach is to use an script that switches the desired repo to .gitignore file and .git folder
|
||||||
|
|
||||||
|
|
||||||
|
# These are common ignores for all repositories
|
||||||
|
/#recycle
|
||||||
|
/#snapshot
|
||||||
|
@eaDir
|
||||||
|
.DS_Store
|
||||||
|
Mangrana.code-workspace
|
||||||
|
_deprecated
|
||||||
|
filebot/presets
|
||||||
|
# these are related with the new local git switch approach
|
||||||
|
.gitignore_public
|
||||||
.gitignore_private
|
.gitignore_private
|
||||||
|
.gitConfigBackups
|
||||||
|
.iAmPublicRepo
|
||||||
|
.iAmPrivateRepo
|
||||||
|
|
||||||
|
############################################
|
||||||
|
## Specific ignores for public repository ##
|
||||||
|
############################################
|
||||||
filebot/desktop/config
|
filebot/desktop/config
|
||||||
filebot/licenses
|
filebot/licenses
|
||||||
filebot/old
|
filebot/old
|
||||||
|
@ -24,6 +49,8 @@ qbit/manager/config
|
||||||
radarr/config
|
radarr/config
|
||||||
sonarr/config
|
sonarr/config
|
||||||
tautulli/config
|
tautulli/config
|
||||||
|
kometa/config
|
||||||
|
Media-Scripts
|
||||||
|
|
||||||
#envs with host sensitive info
|
#envs with host sensitive info
|
||||||
ownServices/SonarrQueueFixer/.env
|
ownServices/SonarrQueueFixer/.env
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 68ff84c85a721be274456328c1b590b30c952939
|
|
@ -0,0 +1,22 @@
|
||||||
|
# backup current snapshots to .gitConfigBackups with date mark
|
||||||
|
cp .gitignore .gitConfigBackups/.gitignore_moving2Private_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp .gitignore_public .gitConfigBackups/.gitignore_public_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp .gitignore_private .gitConfigBackups/.gitignore_private_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp -r .git_public .gitConfigBackups/.git_public_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp -r .git_private .gitConfigBackups/.git_private_$(date +"%Y%m%d%H%M%S")
|
||||||
|
|
||||||
|
# save current changes from .gitignore to .gitignore_public file
|
||||||
|
cp .gitignore .gitignore_public
|
||||||
|
|
||||||
|
# copy .gitignore_private to .gitignore file
|
||||||
|
cp .gitignore_private .gitignore
|
||||||
|
|
||||||
|
# remove current .git folder
|
||||||
|
rm -rf .git
|
||||||
|
|
||||||
|
# copy .git_public to .git folder
|
||||||
|
cp -r .git_public .git
|
||||||
|
|
||||||
|
# save current flag
|
||||||
|
touch .iAmPrivateRepo
|
||||||
|
rm .iAmPublicRepo
|
|
@ -0,0 +1,22 @@
|
||||||
|
# backup current snapshots to .gitConfigBackups with date mark
|
||||||
|
cp .gitignore .gitConfigBackups/.gitignore_moving2Public_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp .gitignore_public .gitConfigBackups/.gitignore_public_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp .gitignore_private .gitConfigBackups/.gitignore_private_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp -r .git_public .gitConfigBackups/.git_public_$(date +"%Y%m%d%H%M%S")
|
||||||
|
cp -r .git_private .gitConfigBackups/.git_private_$(date +"%Y%m%d%H%M%S")
|
||||||
|
|
||||||
|
# save current changes from .gitignore to .gitignore_private file
|
||||||
|
cp .gitignore .gitignore_private
|
||||||
|
|
||||||
|
# copy .gitignore_public to .gitignore file
|
||||||
|
cp .gitignore_public .gitignore
|
||||||
|
|
||||||
|
# remove current .git folder
|
||||||
|
rm -rf .git
|
||||||
|
|
||||||
|
# copy .git_public to .git folder
|
||||||
|
cp -r .git_public .git
|
||||||
|
|
||||||
|
# save current flag
|
||||||
|
touch .iAmPublicRepo
|
||||||
|
rm .iAmPrivateRepo
|
Loading…
Reference in New Issue