From 7ab6184ac46034447f57e62ddfd7caf80f393f12 Mon Sep 17 00:00:00 2001 From: toru Date: Tue, 24 Oct 2017 23:33:12 +0900 Subject: [PATCH] =?UTF-8?q?git=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=81=8C=E8=A6=8B=E3=81=A4=E3=81=8B=E3=82=89=E3=81=AA=E3=81=84?= =?UTF-8?q?=EF=BC=88=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=EF=BC=89?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AF=E3=80=81=E5=86=85=E8=94=B5=E3=81=AE?= =?UTF-8?q?git=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- allow-empty-commit.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/allow-empty-commit.bat b/allow-empty-commit.bat index e53f718..58a45a6 100644 --- a/allow-empty-commit.bat +++ b/allow-empty-commit.bat @@ -1 +1,6 @@ -git commit --allow-empty -m "initial commit" +where git +if %errorlevel%==0 ( + git commit --allow-empty -m "initial commit" +) else ( + %USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\cmd\git.exe commit --allow-empty -m "initial commit" +)