#!/bin/sh # $1 is Unity Project path cd $1 # $2 is Folder or file arr=(${2//,/ }) for set in ${arr[@]} do git checkout $set git checkout ${set}.meta done