Last active
November 11, 2023 18:13
-
-
Save bewuethr/4d044f84989cb430a8b9c46dc4ea75c9 to your computer and use it in GitHub Desktop.
Revisions
-
bewuethr revised this gist
Nov 11, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ git clone --bare "[email protected]:bewuethr/$repo" ".$repo" # Set local repo configuration git -C ".$repo" config user.name 'Benjamin Wuethrich' git -C ".$repo" config user.email 'benjamin.wuethrich@gmail.com' git -C ".$repo" config status.showUntrackedFiles no git -C ".$repo" config core.sparseCheckout true cat <<- EOF > ".$repo/info/sparse-checkout" @@ -29,10 +29,10 @@ cat <<- EOF > ".$repo/info/sparse-checkout" EOF # Check out files - this overwrites existing files git --git-dir=".$repo" --work-tree=. checkout --force "${branch:-main}" # Initialize submodules git --git-dir=".$repo" --work-tree=. submodule update --init # Set upstream git --git-dir=".$repo" --work-tree=. push --set-upstream origin "${branch:-main}" -
bewuethr revised this gist
Nov 9, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,6 +25,7 @@ cat <<- EOF > ".$repo/info/sparse-checkout" /* !README.md !LICENSE !.github/dependabot.yml EOF # Check out files - this overwrites existing files -
bewuethr revised this gist
Sep 3, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,3 +32,6 @@ git --git-dir=".$repo" --work-tree=. checkout --force "${branch:-master}" # Initialize submodules git --git-dir=".$repo" --work-tree=. submodule update --init # Set upstream git --git-dir=".$repo" --work-tree=. push --set-upstream origin "${branch:-master}" -
bewuethr revised this gist
Sep 3, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ cat <<- EOF > ".$repo/info/sparse-checkout" EOF # Check out files - this overwrites existing files git --git-dir=".$repo" --work-tree=. checkout --force "${branch:-master}" # Initialize submodules git --git-dir=".$repo" --work-tree=. submodule update --init -
bewuethr revised this gist
Aug 17, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ git clone --bare "[email protected]:bewuethr/$repo" ".$repo" # Set local repo configuration git -C ".$repo" config user.name 'Benjamin Wuethrich' git -C ".$repo" config user.email 8521043+[email protected] git -C ".$repo" config status.showUntrackedFiles no git -C ".$repo" config core.sparseCheckout true cat <<- EOF > ".$repo/info/sparse-checkout" -
bewuethr revised this gist
Aug 16, 2019 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,10 +17,10 @@ fi git clone --bare "[email protected]:bewuethr/$repo" ".$repo" # Set local repo configuration git -C ".$repo" config user.name 'Benjamin Wuethrich' git -C ".$repo" config user.email [email protected] git -C ".$repo" config status.showUntrackedFiles no git -C ".$repo" config core.sparseCheckout true cat <<- EOF > ".$repo/info/sparse-checkout" /* !README.md -
bewuethr revised this gist
Aug 16, 2019 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,28 +9,26 @@ done if [[ -n $branch ]]; then repo='dotfiles-local.git' else repo='dotfiles.git' fi # Clone repository as bare repository git clone --bare "[email protected]:bewuethr/$repo" ".$repo" # Set local repo configuration git -C "$localdir" config user.name 'Benjamin Wuethrich' git -C "$localdir" config user.email [email protected] git -C "$localdir" config status.showUntrackedFiles no git -C "$localdir" config core.sparseCheckout true cat <<- EOF > ".$repo/info/sparse-checkout" /* !README.md !LICENSE EOF # Check out files - this overwrites existing files git --git-dir=".$repo" --work-tree=. checkout -f "${branch:-master}" # Initialize submodules git --git-dir=".$repo" --work-tree=. submodule update --init -
bewuethr revised this gist
Aug 16, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
bewuethr revised this gist
Aug 16, 2019 . 1 changed file with 23 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,36 @@ #!/usr/bin/env bash while getopts 'l:' opt; do case $opt in l) branch=$OPTARG ;; *) exit 1 ;; esac done if [[ -n $branch ]]; then repo='dotfiles-local.git' localdir='.dotfiles_local.git' else repo='dotfiles.git' localdir='.dotfiles.git' fi # Clone repository as bare repository git clone --bare "[email protected]:bewuethr/$repo" "$localdir" # Set local repo configuration git -C "$localdir" config user.name bewuethr git -C "$localdir" config user.email [email protected] git -C "$localdir" config status.showUntrackedFiles no git -C "$localdir" config core.sparseCheckout true cat <<- EOF > "$localdir/info/sparse-checkout" /* !README.md !LICENSE EOF # Check out files - this overwrites existing files git --git-dir="$localdir" --work-tree=. checkout -f "${branch:-master}" # Initialize submodules git --git-dir="$localdir" --work-tree=. submodule update --init -
bewuethr revised this gist
Aug 16, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,4 @@ EOF git --git-dir=.dotfiles.git --work-tree=. checkout -f # Initialize submodules git --git-dir=.dotfiles.git --work-tree=. submodule update --init -
bewuethr revised this gist
Aug 12, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cat <<-EOF > .dotfiles.git/info/sparse-checkout EOF # Check out files - this overwrites existing files git --git-dir=.dotfiles.git --work-tree=. checkout -f # Initialize submodules git --git-dir=.dotfiles.git --work-tree=. submodule update --init --recursive -
bewuethr revised this gist
Aug 12, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cat <<-EOF > .dotfiles.git/info/sparse-checkout EOF # Check out files - this overwrites existing files git --git-dir=.dotfiles.git checkout -f # Initialize submodules git --git-dir=.dotfiles.git submodule update --init --recursive -
bewuethr revised this gist
Aug 12, 2019 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,19 +4,17 @@ git clone --bare [email protected]:bewuethr/dotfiles.git .dotfiles.git # Set local repo configuration git -C .dotfiles.git config user.name bewuethr git -C .dotfiles.git config user.email [email protected] git -C .dotfiles.git config status.showUntrackedFiles no git -C .dotfiles.git config core.sparseCheckout true cat <<-EOF > .dotfiles.git/info/sparse-checkout /* !README.md !LICENSE EOF # Check out files - this overwrites existing files git --git-dir="$HOME/.dotfiles.git" --work-tree="$HOME" checkout -f # Initialize submodules -
bewuethr revised this gist
Aug 12, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ EOF # Check out files - this overwrites existing files cd .. git --git-dir="$HOME/.dotfiles.git" --work-tree="$HOME" checkout -f # Initialize submodules git df submodule update --init --recursive -
bewuethr revised this gist
Aug 12, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ EOF # Check out files - this overwrites existing files cd .. git df checkout -f # Initialize submodules git df submodule update --init --recursive -
bewuethr created this gist
Aug 12, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ #!/usr/bin/env bash # Clone repository as bare repository git clone --bare [email protected]:bewuethr/dotfiles.git .dotfiles.git # Set local repo configuration cd .dotfiles.git || exit 1 git config user.name bewuethr git config user.email [email protected] git config status.showUntrackedFiles no git config core.sparseCheckout true cat <<-EOF > info/sparse-checkout /* !README.md !LICENSE EOF # Check out files - this overwrites existing files cd .. git dft checkout -f # Initialize submodules git dft submodule update --init --recursive