You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

git-inside-branch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-inside-branch

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

git-inside-branch

git-inside-branch allows you to inspect and modify another branch in a temporarily directory without affecting current working tree.

Usage

From command line

git inside-branch doc_branch bash

This will checkout doc_branch and run bash. Then you edit your docs with vim or emacs, commit the results and exit bash.

git inside-branch gh_pages "cp $HOME/projects/my_proj/rdoc . && git add . && git commit -am 'Doc updates' && git push"

From ruby

Git::Inside::Branch.tempory_checkout("gh_pages") do
  `cp $HOME/projects/my_lib/rdoc .`
  `git commit -a -m 'Doc updates' && git push`
end

I think is easy.

Documentation

  • Git::Inside::Branch.tempory_checkout( branch_name, &block )

    Run the code passed in the block in another temporarily checkouted directory from the branch branch_name

AUTHOR

  • Guillermo Álvarez guillermo@cientifico.net

LICENSE

Copyright (c) 2011, Guillermo Álvarez guillermo@cientifico.net All rights reserved.

"THE BEER-WARE LICENSE" (Revision 42): guillermo@cientifico.net wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Guillermo Álvarez.

FAQs

Package last updated on 10 Oct 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts