Skip to content

Instantly share code, notes, and snippets.

View amrography's full-sized avatar
🚀
...

Amro Khaled amrography

🚀
...
View GitHub Profile
@amrography
amrography / git-gen-commit
Created February 18, 2026 13:31 — forked from Tavernari/git-gen-commit
This script automates commit message generation using AI. It analyzes the current git diff, sends it to an Ollama model (tavernari/git-commit-message:reasoning), and formats the output neatly.
#!/usr/bin/env bash
set -u
set -o pipefail
# =======================================================
# Minimalist Colors
# =======================================================
BOLD=$'\033[1m'
RESET=$'\033[0m'
FG_RED=$'\033[31m'
@amrography
amrography / git-deployment.md
Created November 18, 2021 09:43 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.