git-reclone

reclone a local git repo from the remote.


Keywords
gem, git, nuke, ruby
License
MIT
Install
gem install git-reclone -v 0.2.3

Documentation

git-nuke 🚀

MIT Gem Version Build Status Code Climate

nuke your local copy of a git repo, and reclone it from your remote.

Screencast

tested and works well for:

- github
- bitbucket

setup

[sudo] gem install git-nuke

This will enable the git nuke command automatically!

usage

git nuke

reclones from the first git remote. to clone a specific remote, specify some part (or all) of the host name. for example:

git nuke bit
git nuke bucket
git nuke bitbucket

will all overwrite the current repository with bitbucket's remote (assuming that some other host/repo name doesn't also match 'bitbucket').

about

sometimes i mess up git histories, with (merges or rebasing, etc), and it becomes more of a headache to figure out how to undo what i did than to just reclone the remote copy and apply the changes i want in the right way. i was doing this often enough that i figured it would be nice to have a tool that just did this automatically. besides, it can be satisfying to just nuke your local copy and start anew - after all, what are backups meant for?

testing

bundle || gem install bundler && bundle
rake # running git-nuke's tests