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

doesn't work with git aliases #6

Open
muszek opened this issue May 27, 2014 · 3 comments
Open

doesn't work with git aliases #6

muszek opened this issue May 27, 2014 · 3 comments

Comments

@muszek
Copy link

muszek commented May 27, 2014

muszek@dziobak:/tmp$ git ci -m 'test'
[master (root-commit) bf8c011] test
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 a
 create mode 100644 b
muszek@dziobak:/tmp$ gitjk 
I didn't recognize that command
@mapmeld
Copy link
Owner

mapmeld commented May 27, 2014

How should I look up what an alias does?

If it does multiple commands it might be difficult to undo some / all of them.

@muszek
Copy link
Author

muszek commented May 27, 2014

Hmmm.... perhaps you should consider showing (optionally) info on undoing
more than the most recent command? Take a look at the timestamp - if they
were done in one go, show undo commands in a reversed order for all of
them. Otherwise just the last command. gitjk -n 3 could instruct us on
undoing the last 3 commands.

A simpler solution would be to support aliases only if they're for a single
command, which I bet is the most common scenario.
A part of my ~/.gitconfig

[alias]
 st = status
ci = commit
co = checkout
br = branch

On Tue, May 27, 2014 at 1:53 PM, Nick Doiron notifications@github.comwrote:

How should I look up what an alias does?

If it does multiple commands it might be difficult to undo some / all of
them.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-44265749
.

kind regards,
Mateusz Mucha
muszek@gmail.com

@mapmeld
Copy link
Owner

mapmeld commented Jun 2, 2014

Mostly supported now by #8

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