Skip to content

Instantly share code, notes, and snippets.

@yuba
Last active August 29, 2015 14:08
Show Gist options
  • Save yuba/49ab4d2696bf2db061fb to your computer and use it in GitHub Desktop.
Save yuba/49ab4d2696bf2db061fb to your computer and use it in GitHub Desktop.
Gitローカル変更の無視をSourceTreeからも ref: http://qiita.com/yuba/items/35459755e53035ed102f
<?xml version="1.0"?>
<ArrayOfCustomAction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomAction>
<Caption>ローカルで管理対象外に</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --skip-worktree $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>管理対象に戻す</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --no-skip-worktree $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>ローカル変更を無視</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --assume-unchanged $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>ローカル変更の無視を解除</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --no-assume-unchanged $FILE</Parameters>
</CustomAction>
</ArrayOfCustomAction>
<?xml version="1.0"?>
<ArrayOfCustomAction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomAction>
<Caption>ローカルで管理対象外に</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --skip-worktree $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>管理対象に戻す</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --no-skip-worktree $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>ローカル変更を無視</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --assume-unchanged $FILE</Parameters>
</CustomAction>
<CustomAction>
<Caption>ローカル変更の無視を解除</Caption>
<OpenInSeparateWindow>false</OpenInSeparateWindow>
<ShowFullOutput>false</ShowFullOutput>
<Target>git</Target>
<Parameters>update-index --no-assume-unchanged $FILE</Parameters>
</CustomAction>
</ArrayOfCustomAction>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment