Coder Social home page Coder Social logo

git-nuke's Introduction

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

git-nuke's People

Contributors

jeremywrnr avatar

Watchers

Daniel Rothmaler avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.