Thursday, January 31, 2013

Setting up Github on AWS

sudo apt-get install git -y

Choose a location to store your code. I like to put my code on a separate EBS for portability. In the following, I will use /vol for this location.

mkdir /vol/src
cd /vol/src

git config --global user.name "your_name"
git config --global user.email "your_email"
git config --global github.user "your_github_login"
git clone ssh://git@github.com/username/repo.git

You will want to establish a connection with Github using ssh rather than https because if you are building an image that can be used for auto-scaling you don't want to input the username and password every time. See Generating SSH Keys for more details.

Your project should be located in /vol/src/{your_project}.

No comments:

Post a Comment