install git lfs
This commit is contained in:
parent
1ed1614b70
commit
02dd9c13be
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; }
|
||||
git lfs post-checkout "$@"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.\n"; exit 2; }
|
||||
git lfs post-commit "$@"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; }
|
||||
git lfs post-merge "$@"
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# check for WIP commits
|
||||
wips=$(git log --oneline --no-decorate | grep -i wip )
|
||||
wips_n=$(echo "$wips" | wc -l)
|
||||
LOCKFILE=/tmp/githook.allow_wip
|
||||
|
@ -14,3 +14,7 @@ if [[ ! -f $LOCKFILE && -n "$wips" ]]; then
|
|||
* ) echo -e "\naborting."; exit 1;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# git-lfs stuff
|
||||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\n"; exit 2; }
|
||||
git lfs pre-push "$@"
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
!.config/btop/**
|
||||
!.config/kitty
|
||||
!.config/kitty/**
|
||||
!.config/zed
|
||||
!.config/zed/**
|
||||
!.githooks
|
||||
!.githooks/**
|
||||
!.config/rustfmt/**
|
||||
!.config/rustfmt/
|
||||
!.gitignore
|
||||
|
|
Loading…
Reference in New Issue