Skip to content

Instantly share code, notes, and snippets.

@ju-la-berger
Last active September 21, 2017 15:16
Show Gist options
  • Save ju-la-berger/65b999a219ef731fd9b5550c72b37357 to your computer and use it in GitHub Desktop.
Save ju-la-berger/65b999a219ef731fd9b5550c72b37357 to your computer and use it in GitHub Desktop.
How to commit untracked files one by one
git ls-files --others --exclude-standard | while read filename; do git add "$filename" && git commit --message="Add new file '$filename'"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment