git - How to clone and deploy a historical commit -


i have been using git not advance level because it's me pushes commit github server , know conflicts arises if any. there's developer working in part of world pushed updates github repository.

my problem of work not yet production-ready want go last commit , push updates there when capistrano deploy , i'll quite sure code production-ready. how can this?

you can checkout particular commit using command:

git checkout <commit-id> 

now, if want more commits on this, you'll need create new branch:

git checkout -b <branch-name> <commit-id> 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -