1
0
Fork 0

try moving to the bare repo ;)

This commit is contained in:
Pratham Patel 2023-06-05 19:00:49 +05:30
parent 4dcbd805db
commit 8bd2ffafdd
1 changed files with 4 additions and 15 deletions

View File

@ -1,18 +1,7 @@
#!/usr/bin/env bash
PRATHAM_HOME=/home/pratham
pushd /home/pratham
mkdir my-git-repos
pushd my-git-repos
git clone --depth 1 https://git.thefossguy.com/thefossguy/dotfiles.git
pushd dotfiles
tput -x clear
rsync \
--verbose --recursive --size-only --human-readable \
--progress --stats \
--itemize-changes --checksum --perms \
--exclude=".git" --exclude=".gitignore" --exclude="README.md" \
--exclude="run_me.sh" --exclude="_OTHER" \
../dotfiles/ ~/
popd
popd
pushd ${PRATHAM_HOME}
git clone --depth 1 --bare https://git.thefossguy.com/thefossguy/dotfiles.git
git --git-dir=${PRATHAM_HOME}/my-git-repos/dotfiles --work-tree=${PRATHAM_HOME} checkout
popd