Little git extra - now with even less little
Clone / Tarball:
$ make install
One-liner:
$ curl https://github.com/robotarmy/git-extras/raw/master/bin/git-update-extras | sh
- git delete-submodule
- git ignore
- git release
- git repl
- git update-extras
- git touch
GIT read-eval-print-loop:
$ git repl
git> ls-files
History.md
Makefile
Readme.md
bin/git-changelog
bin/git-count
bin/git-delete-branch
bin/git-delete-tag
bin/git-ignore
bin/git-release
git> quit
Release commit with the given <tag>.
$ git release 0.1.0
Does the following:
- Commits changes (to changelog etc) with message "Release <tag>"
- Tags with the given <tag>
- Pushes the branch / tags
To lazy to open up .gitignore? me too! simply pass some patterns:
$ git ignore build "*.o" "*.log"
... added 'build'
... added '*.o'
... added '*.log'
Running git-ignore
without a pattern will display the current patterns:
$ git ignore
build
*.o
*.log
Deletes submodule name.
$ git delete-submodule lib/foo
Updates git extras. clones the repo to /tmp/git-extras, make installs, then cds back to the origin directory.
Call touch
on the given file and add it to the current index. Used one-step creating new files.