Equivalent to “git update-index --assume-unchanged” in SourceTree

后端 未结 2 1085
别跟我提以往
别跟我提以往 2021-02-01 04:38

So far I used git update-index --assume-unchanged on the database configuration file after I filled in the database password because I don\'t want my database passw

相关标签:
2条回答
  • 2021-02-01 05:18

    I just defined custom action for this task.

    Make sure the path to git is correct.

    Thanks to @RobCroll from the comments, we now have a Windows version:

    C:\Program Files (x86)\Git\bin\git.exe (for x64 use: C:\Program Files\Git\bin)
    Parameters: update-index --assume-unchanged $FILE 
    

    enter image description here

    0 讨论(0)
  • 2021-02-01 05:32

    It is quite likely that SourceTree doesn't have a feature for manipulating the index in that way (although I could be wrong, but it doesn't seem to). However that doesn't mean you can't drop down to the terminal in order to issue that command, but continue to use SourceTree for everything else.

    0 讨论(0)
提交回复
热议问题