try moving to the bare repo ;)
This commit is contained in:
parent
4dcbd805db
commit
8bd2ffafdd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue