From 01f5e36a89b0ccc7569f698cfcee2d9860b01b37 Mon Sep 17 00:00:00 2001 From: Karl Matthias Date: Wed, 15 May 2013 09:09:47 +0100 Subject: [PATCH] Update on deploying a previous commit. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 790b224..967e073 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Helpful Git Config You might find it useful to add this to your ~/.gitconfig in order to get a nice history view of the commits and tags. -``` +```ini [alias] lol = log --pretty=oneline --abbrev-commit --graph --decorate ``` @@ -59,6 +59,14 @@ to get a nice history view of the commits and tags. You can then view the list by typing `git lol` from the checked out code path. +Deploying a Previous Commit +--------------------------- +Because you have to actually be on the head of the branch you are +deploying in order for tagging to work properly, deploying a previous +commit doesn't work as you might expect. The simple solution is to +create a new branch from the previous commit you wish to deploy and +supplying `-S branch=` as arguments to Capistrano. + Credits ------- This software was written by [Karl Matthias](https://github.com/relistan)