Skip to content

Instantly share code, notes, and snippets.

@guoxx
Created April 23, 2014 01:46
Show Gist options
  • Save guoxx/11200287 to your computer and use it in GitHub Desktop.
Save guoxx/11200287 to your computer and use it in GitHub Desktop.
#!/bin/zsh
files=`git ls-files -co --exclude-standard`
sb_files=`git --no-pager submodule --quiet foreach 'git ls-files --full-name -co --exclude-standard | sed s!^!$path/!'`
all_files=$files$sb_files
echo $all_files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment