Skip to content

Instantly share code, notes, and snippets.

View codersgyan's full-sized avatar
🏠
Working from home

Rakesh K codersgyan

🏠
Working from home
View GitHub Profile
#!/bin/sh
mkdir -p /var/repo/$1
cd /var/repo/$1
git init --bare
cd hooks
hookCommand="#!/bin/sh\ngit --work-tree=$2 --git-dir=/var/repo/$1 checkout -f"
echo $hookCommand >> post-receive
echo "Post-receive created at /var/repo/$1/hooks"
chmod +x post-receive
@codersgyan
codersgyan / cloudSettings
Created January 10, 2022 10:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-10T10:45:13.272Z","extensionVersion":"v3.4.3"}