gitsh.sh 158 B

12345678910111213
  1. #!/bin/sh
  2. # $1 is Unity Project path
  3. cd $1
  4. # $2 is Folder or file
  5. arr=(${2//,/ })
  6. for set in ${arr[@]}
  7. do
  8. git checkout $set
  9. git checkout ${set}.meta
  10. done