Created
October 17, 2014 17:06
-
-
Save teitei-tk/db13d88fc06b784340b8 to your computer and use it in GitHub Desktop.
俺俺Gitのalias&ワンライナー集 ref: http://qiita.com/teitei_tk/items/699cef25a14db67ba8b7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
restart = reset --hard HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
delete-items = !git status | grep deleted: | awk '{print $2}' | xargs git rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ touch README.md | |
$ git commit -a -m "first commit" | |
$ rm README.md | |
$ git delete-items | |
$ git commit -a -m "remove : README.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
delete-add-items = !git status | awk '{print $1}' | xargs rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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