Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremywrnr/git-reclone
reclone your git repo
https://github.com/jeremywrnr/git-reclone
clone gem git ruby
Last synced: 4 months ago
JSON representation
reclone your git repo
- Host: GitHub
- URL: https://github.com/jeremywrnr/git-reclone
- Owner: jeremywrnr
- Created: 2016-03-15T21:29:22.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-06-07T00:26:39.000Z (over 1 year ago)
- Last Synced: 2024-10-18T11:29:41.391Z (4 months ago)
- Topics: clone, gem, git, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/git-reclone
- Size: 43.9 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# git-reclone :rocket:
[](https://badge.fury.io/rb/git-reclone)
[](https://app.travis-ci.com/github/jeremywrnr/git-reclone)
[](http://jeremywrnr.com/mit-license)destroy your local copy of a git repo, and reclone it from your remote.

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 bitbucketwill 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