{"id":22769766,"url":"https://github.com/bfontaine/mvb","last_synced_at":"2025-10-06T18:50:44.753Z","repository":{"id":17169881,"uuid":"19937032","full_name":"bfontaine/mvb","owner":"bfontaine","description":":rewind: mv. reversed.","archived":false,"fork":false,"pushed_at":"2015-10-04T16:55:23.000Z","size":164,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:41.249Z","etag":null,"topics":["cli","shell","tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfontaine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-19T10:02:00.000Z","updated_at":"2024-11-28T16:29:20.000Z","dependencies_parsed_at":"2022-09-11T03:20:19.544Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/mvb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fmvb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fmvb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fmvb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fmvb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/mvb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313104,"owners_count":20757429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","shell","tool"],"created_at":"2024-12-11T15:15:35.654Z","updated_at":"2025-10-06T18:50:39.713Z","avatar_url":"https://github.com/bfontaine.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mvb\n\n`mvb` is a little utility to move files back. It’s like `mv`, but reversed.\n\nHave you ever moved the wrong file with `mv`, and edited your previous command\nto mv back the file? With `mvb`, all you need to do is to re-run your command\nwith a `b` at the end of `mv`. That’s it.\n\n    $ mv foo/bar/qux/myfile abc/xyz/myfile2\n\n    # damn, wrong file, let’s move it back\n    $ mvb foo/bar/qux/myfile abc/xyz/myfile2\n\n## Features\n\n* no dependencies\n* all `mv` options are supported\n\n## Install\n\n    mkdir -p ~/bin\n    curl https://raw.github.com/bfontaine/mvb/master/mvb \u003e ~/bin/mvb\n    chmod u+x ~/bin/mvb\n\nThis creates the `~/bin` directory if it doesn’t exist. If it’s not in your\n`PATH` you have to add it:\n\n    echo 'export PATH=\"$HOME/bin:$PATH\"' \u003e\u003e ~/.bashrc\n\n### Using Homebrew\n\nOn OS X with [Homebrew](http://brew.sh/), use:\n\n    brew install bfontaine/utils/mvb\n\n## Caveats\n\nA lot of `mv` variations can’t be reverted without much informations, for\nexample:\n\n    mv foo/* bar/\n\nThus, `mvb` handles only simple cases where a file is renamed/moved; not\ncomplex ones involving glob patterns and directories renaming. By default,\n`mvb` runs `mv` on its (switched) arguments. If the last path ends with a\nslash, it appends the first file’s name to it before continuing.\n\nFor example, `mvb foo bar` is equivalent to `mv bar foo`; while `mvb foo bar/`\nis equivalent to `mv bar/foo foo`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fmvb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fmvb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fmvb/lists"}