A Git subcommand to mv
file like gsub in a repository
Usage
$ git gsub-files READ WRITE
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: README.md
Untracked files:
(use "git add <file>..." to include in what will be committed)
WRITEME.md
no changes added to commit (use "git add" and/or "git commit -a")
--add
option
Run git mv
instead of mv
.
$ git gsub-files READ WRITE --add
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
renamed: README.md -> WRITEME.md
no changes added to commit (use "git add" and/or "git commit -a")
Instration
$ gem install git-gsub-files
See also
- git-gsub A Git subcommand to do gsub in a repository
- git-rename
Contributing
- Fork it ( https://github.com/[my-github-username]/git-gsub-files/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request