I have cloned a project that includes some .csproj
files. I don\'t need/like my local csproj
files being tracked by Git (or being brought up when c
after search a long time , find a way do this .
alias a git command in .gitconfig
.like in android studio project,before checkout branch revert config file and then skip it ,after checkout branch use sed
change config file to my local config.
checkoutandmodifylocalproperties = !git update-index --no-skip-worktree local.properties && git checkout local.properties && git checkout $1 && git update-index --skip-worktree local.properties && sed -i '' 's/.*sdk.dir.*/sdk.dir=\\/Users\\/run\\/Library\\/Android\\/sdk/g' local.properties && :