Category Archives: Revision control

Git branching model

Git branching model : Following model can be used for feature and fixes. Consideration: Servers: – Local Server – Remote Server – Production Server Branches: – Release branch : “release” – Development branch : “master” – Feature branch : “feature” … Continue reading

Posted in Revision control | Tagged | Leave a comment

Git deployment shell script

Git deployment shell script Following shell script can be useful for deplying git branch on multiple servers. #!/bin/bash DIR=”$( cd “$( dirname “${BASH_SOURCE[0]}” )” && pwd )” HN=$(hostname) declare -A SERVER; SERVER["app1"]=”ubuntu@111.111.111.11″; SERVER["app12"]=”ubuntu@222.222.222.22″; SERVER["mongo1"]=”ubuntu@333.333.333.33″; SERVER["mongo12"]=”ubuntu@333.333.333.33″; SERVER["lb1"]=”ubuntu@444.444.444.44″; SERVER["lb12"]=”ubuntu@555.555.555.55″; usage() { local … Continue reading

Posted in Revision control, Shell Script | Tagged , | Leave a comment

Install git on ubuntu for github

Install git on ubuntu for github $sudo apt-get install git-core $which git /usr/bin/git $git –version git version 1.7.9.5 Create repository on Github. Username: First you need to tell git your name, so that it can properly label the commits you … Continue reading

Posted in Revision control | Tagged , | Leave a comment