how to add to new untracked file git code example Example: git add untracked files to ignore git status --porcelain | grep '^??' | cut -c4- >> .gitignore