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
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* original -> https://gist.github.com/mardix/3623562 | |
*/ | |
/** | |
* collect all files which have been added, copied or | |
* modified and store them in an array called output |
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
#!/bin/sh | |
#ブランチ名を取得 | |
Branch="$(git rev-parse --abbrev-ref HEAD)" | |
#コミットメッセージの最初にブランチ名を追加 | |
mv $1 $1.tmpbycommit-msg | |
echo -n "[$Branch] " > $1 | |
cat $1.tmpbycommit-msg >> $1 |
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 config --global init.templatedir "C:/Users/%username%/.git_template/" | |
# be careful the things below | |
-must use " not ' | |
-must use / not \ | |
-needed last / don't omit last / | |
-don't use baskslash | |
#----------------------- | |
✓ okay 1 ✓ |
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
#!/bin/bash | |
echo "---------------------start post-receive : `date`" >> ~/kuji.log | |
while read oldrev newrev ref | |
do | |
branch=`echo $ref | sed 's/refs\/heads\///'` | |
echo $ref >> ~/kuji.log | |
done | |
echo $branch >> ~/kuji.log |
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
Show hidden characters
{ | |
// The command to execute for the terminal, leave blank for the OS default | |
// On OS X the terminal can be set to iTerm.sh to execute iTerm | |
"terminal": "C:\\Program Files\\Git\\git-bash.exe", | |
// A list of default parameters to pass to the terminal, this can be | |
// overridden by passing the "parameters" key with a list value to the args | |
// dict when calling the "open_terminal" or "open_terminal_project_folder" | |
// commands | |
"parameters": ["-c", "cd \"%CWD%\" && \"C:\\Program Files\\Git\\bin\\sh.exe\" -i -l"] |
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
'use strict'; | |
/** | |
* | |
* Make sure you must install modules below before use. | |
* | |
* > $ npm i grunt-contrib-watch --save-dev | |
* > $ npm i grunt-exec --save-dev | |
* | |
* |
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
With argument | |
"C:\Program Files\Git\git-bash.exe" "--cd=%1" | |
Direct | |
"C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\" |
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
diff --git a/Smarty.tmPreferences b/Smarty.tmPreferences | |
index bf6a0ea..f4117e0 100644 | |
--- a/Smarty.tmPreferences | |
+++ b/Smarty.tmPreferences | |
@@ -14,13 +14,13 @@ | |
<key>name</key> | |
<string>SMARTY_LDELIM</string> | |
<key>value</key> | |
- <string><![CDATA[{]]></string> | |
+ <string><![CDATA[<{ ]]></string> |
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
<ruleset name="Custom Standard"> | |
<description>My custom coding standard</description> | |
<rule ref="PSR2"> | |
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma"/> | |
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/> | |
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/> | |
<exclude name="Generic.Files.LineLength.TooLong"/> | |
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/> |
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 / GIT FLOW ALIASES | |
# https://gist.github.com/kujiy/c6afe3a8577e37af6566e1699bfc6f51 | |
# alias gs="git status" # Unfortunately Ghost Script used `gs` already. | |
alias gss="git status" | |
alias gd="git diff" | |
alias gdc="git diff --cached" | |
gdn() { git diff --no-index -- $1 $2; } | |
alias gb="git branch" | |
alias gbr="git branch -r" |
OlderNewer