Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt when there are untracked files that are not ignored #7

Open
andrewshadura opened this issue Oct 10, 2017 · 0 comments
Open

prompt when there are untracked files that are not ignored #7

andrewshadura opened this issue Oct 10, 2017 · 0 comments

Comments

@andrewshadura
Copy link
Owner

andrewshadura commented Oct 10, 2017

When in a git repository with untracked files that are not ignored, it would be nice to be able to stage and or commit those files.

pabs@chianamo ~ $ mkdir tmp-git-crecord-staging/
pabs@chianamo ~ $ cd tmp-git-crecord-staging/
pabs@chianamo ~/tmp-git-crecord-staging $ git init
Initialized empty Git repository in /home/pabs/tmp-git-crecord-staging/.git/
pabs@chianamo ~/tmp-git-crecord-staging (master #) $ touch foo
pabs@chianamo ~/tmp-git-crecord-staging (master #%) $ git crecord
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
no changes to record
pabs@chianamo ~/tmp-git-crecord-staging (master #%) $ git add foo
pabs@chianamo ~/tmp-git-crecord-staging (master +) $ git commit -am foo
[master (root-commit) 7daca94] foo
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo
pabs@chianamo ~/tmp-git-crecord-staging (master) $ touch bar
pabs@chianamo ~/tmp-git-crecord-staging (master %) $ git crecord
no changes to record

(Reported by Paul Wise <@pabs3>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant