Skip to content

Instantly share code, notes, and snippets.

View rap1ds's full-sized avatar

Mikko Koski rap1ds

View GitHub Profile
#!/usr/local/bin/python
"""
To use this script, you must be in the root directory of a Rails project that
is using git. You should also make sure that your directory does not contain any
uncommitted changes. Then run:
$ python rails_switch_branch.py name_of_another_branch
Running the above will do the following: