+
Skip to content

robotarmy/git-extras

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Extras

Little git extra - now with even less little

Installation

Clone / Tarball:

 $ make install

One-liner:

$ curl https://github.com/robotarmy/git-extras/raw/master/bin/git-update-extras | sh

Commands

  • git delete-submodule
  • git ignore
  • git release
  • git repl
  • git update-extras
  • git touch

git-repl

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

git-release

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

git-ignore

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

git-delete-submodule <name>

Deletes submodule name.

$ git delete-submodule lib/foo

git-update-extras

Updates git extras. clones the repo to /tmp/git-extras, make installs, then cds back to the origin directory.

git-touch [filename]

Call touch on the given file and add it to the current index. Used one-step creating new files.

About

GIT utilities -- repo summary, commit counting, repl, changelog population and more

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 59.2%
  • Makefile 40.8%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载