8000 Use HEAD as a default target · Issue #43 · mystor/git-revise · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use HEAD as a default target #43

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

Open
stouset opened this issue Oct 16, 2019 · 1 comment
Open

Use HEAD as a default target #43

stouset opened this issue Oct 16, 2019 · 1 comment

Comments

@stouset
Copy link
stouset commented Oct 16, 2019

I have an alias recommit:

$ git config alias.recommit
commit --amend -CHEAD

It occurred to me that git revise HEAD desugars to essentially the same thing and so my alias is no longer needed. It would be nice if git revise used HEAD as a default target, so staged changes would simply be amended to the current commit with no other arguments.

@foonathan
Copy link

I came here to suggest the same thing. In the majority of cases, I used git commit -a and forgot about untracked files, so I just need to edit the previous commit. Making HEAD default would make that case easier.

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

No branches or pull requests

2 participants
0