Skip to content

Instantly share code, notes, and snippets.

View kalitvyan's full-sized avatar

Kostya kalitvyan

View GitHub Profile
@thetwopct
thetwopct / deployment.sh
Created June 24, 2024 08:04
Laravel Forge Deployment Script
cd $FORGE_SITE_PATH
pwd
php artisan down || true
echo "git fetch"
git fetch origin
echo "git checkout"
@BenSampo
BenSampo / deploy.sh
Last active August 22, 2025 10:49
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@troyfontaine
troyfontaine / 1-setup.md
Last active October 27, 2025 09:17
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.