try moving to the bare repo ;)
This commit is contained in:
parent
4dcbd805db
commit
8bd2ffafdd
|
@ -1,18 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
PRATHAM_HOME=/home/pratham
|
||||||
|
|
||||||
pushd /home/pratham
|
pushd ${PRATHAM_HOME}
|
||||||
mkdir my-git-repos
|
git clone --depth 1 --bare https://git.thefossguy.com/thefossguy/dotfiles.git
|
||||||
pushd my-git-repos
|
git --git-dir=${PRATHAM_HOME}/my-git-repos/dotfiles --work-tree=${PRATHAM_HOME} checkout
|
||||||
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
|
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in New Issue