0.0
No release in over 3 years
Low commit activity in last 3 years
reclone a local git repo from the remote.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 1.2, ~> 1.2
 Project Readme

git-reclone 🚀

Gem Version Build Status MIT

destroy 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-reclone

This will enable the git reclone command automatically!

usage

git reclone

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

git reclone bit
git reclone bucket
git reclone 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 reclone your local copy and start anew - after all, what are backups meant for?

testing

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