Skip to content

Commit

Permalink
.gitignore all files except those needed
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Dec 9, 2023
1 parent ce1a270 commit 383e955
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Generate-GitBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,20 @@ LAYERED_SIZE=$( if ($kv.Contains('LAYERED_SIZE')) { $kv['LAYERED_SIZE'] } else {

"Creating .gitignore" | Write-Host -ForegroundColor Green
@"
/.*
*
!/build/
/build/*
!/build/Dockerfile
!/update/
/update/*
!/update/Dockerfile
!/.env
!/.gitignore
!/.gitlab-ci.yml
!/.state
!/.trigger
!/build.sh
!/notify.sh
"@ | Out-File .gitignore -Encoding utf8 -Force

if (git status --porcelain 2>$null) {
Expand Down

0 comments on commit 383e955

Please sign in to comment.