git status shows modifications, git checkout — doesn’t remove them

I would like to remove all changes to my working copy. Running git status shows files modified. Nothing I do seems to remove these modifications. E.g.: rbellamy@PROMETHEUS /d/Development/rhino-etl (master) $ git status # On branch master # Changed but not updated: # (use “git add <file>…” to update what will be committed) # (use “git … Read more

Why does ‘git commit’ not save my changes?

I did a git commit -m “message” like this: > git commit -m “save arezzo files” # On branch master # Changes not staged for commit: # (use “git add <file>…” to update what will be committed) # (use “git checkout — <file>…” to discard changes in working directory) # # modified: arezzo.txt # modified: … Read more

Git: list only “untracked” files (also, custom commands)

Is there a way to use a command like git ls-files to show only untracked files? The reason I’m asking is because I use the following command to process all deleted files: git ls-files -d | xargs git rm I’d like something similar for untracked files: git some-command –some-options | xargs git add I was … Read more