Skip to content

Instantly share code, notes, and snippets.

View CharlieEtienne's full-sized avatar
🖖
Hi GitHub!

Charlie Etienne CharlieEtienne

🖖
Hi GitHub!
View GitHub Profile
@CharlieEtienne
CharlieEtienne / post-update
Last active October 13, 2018 10:30
Git hook "post-update" located in "/home/username/.git/hooks/"
#!/bin/bash
#
# Hook script to pull automatically
# stage branch in /stage folder and master branch in /prod folder
# when a push is detected
# Replace "username" by your username
ME="username"
@CharlieEtienne
CharlieEtienne / .bash_profile
Last active October 13, 2018 10:14
File ".bash_profile" located in "/home/username/"
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Replace "username" by your username
ME="username"