Skip to content

Instantly share code, notes, and snippets.

View xolaniworld's full-sized avatar

Xolani Mgcoyi xolaniworld

  • Nilwange
View GitHub Profile
@xolaniworld
xolaniworld / .gitconfig
Created March 23, 2022 15:19 — forked from DuaelFr/.gitconfig
Useful git config
[alias]
a = add
aa = add -A
ac = "!f() { curl $@ | git apply --index; }; f"
ac3 = "!f() { curl $@ | git apply -3 --index; }; f"
amend = commit --amend -C HEAD
ap = add -p
app = apply --index
br = branch
cb = checkout -b
@xolaniworld
xolaniworld / git-deployment.md
Last active October 3, 2018 11:09 — 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 lokal 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 my Deepl.io to act upon a Web-Hook that's triggered that service.

@xolaniworld
xolaniworld / .bashrc
Last active March 6, 2018 09:04 — forked from mathiasverraes/.bashrc
Git shortcuts
#! /bin/sh
alias gs="git status"
alias gc="git commit"
alias gr="git checkout"
alias ga="git add"
alias gl="git lola"