Skip to content

Instantly share code, notes, and snippets.

@teitei-tk teitei-tk/file0.txt
Created Oct 17, 2014

Embed
What would you like to do?
俺俺Gitのalias&ワンライナー集 ref: http://qiita.com/teitei_tk/items/699cef25a14db67ba8b7
[alias]
restart = reset --hard HEAD
$ git restart
[alias]
delete-items = !git status | grep deleted: | awk '{print $2}' | xargs git rm
$ touch README.md
$ git commit -a -m "first commit"
$ rm README.md
$ git delete-items
$ git commit -a -m "remove : README.md"
[alias]
delete-add-items = !git status | awk '{print $1}' | xargs rm -rf
$ git branch | grep hoge | xargs -I % git branch -D %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.