Skip to content

Instantly share code, notes, and snippets.

View gabrielgilini's full-sized avatar
🍻

Gabriel Gilini gabrielgilini

🍻
View GitHub Profile
@gabrielgilini
gabrielgilini / git-automated-deploys.md
Created June 26, 2012 04:14
Deploys automatizados com git
#!/bin/sh
function get_project_path()
{
echo $(pwd | sed 's/\/home\/git\/repositories\///' | sed 's/\.git$//')
}
branch=$(git rev-parse --symbolic --abbrev-ref $1)
if [ $branch == "hml" ]
then