Skip to content

Commit

Permalink
git alias to stagge an empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
dave1010 committed Aug 23, 2011
1 parent b287b7c commit da7e6b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitconfig
Expand Up @@ -22,6 +22,7 @@
sync = "! git pull && git push"
f = "! git status --porcelain| awk '{ print $2 }' | head -n 1" # get the 1st changed file
overview = log --graph --simplify-by-decoration --decorate --pretty=format:'%cd%Cgreen%d %Cblue%h %Creset%s' --date=short
stage-empty-file = ""! git update-index --add --cacheinfo 100644 $(git hash-object -w /dev/null) "
[branch]
autosetupmerge = always
[push]
Expand Down

0 comments on commit da7e6b9

Please sign in to comment.