tips icon indicating copy to clipboard operation
tips copied to clipboard

Add follow up your last commit

Open dmlemos opened this issue 8 years ago • 8 comments

When you leave for the day and come back next day without much clue in what you did the day before. Or when you finish something and don't come back to it for a few weeks.

This command lists your last commit, which should help knowing what you did :smile:

dmlemos avatar Feb 23 '17 12:02 dmlemos

Is it a little too much 🤔?

hemanth avatar Feb 23 '17 14:02 hemanth

I love it. 😂

Thanood avatar Feb 23 '17 14:02 Thanood

Discovered this repo recently so I am just giving my contributions. Mostly going through my aliases. Hope it helps other people as well.

dmlemos avatar Feb 23 '17 15:02 dmlemos

Let us wait for some more upvotes?

aliases at times can get too messy.

hemanth avatar Feb 24 '17 02:02 hemanth

I thought the option--global in git config --global user.email was a typo, should it be --get?

goldie-lin avatar Mar 28 '17 13:03 goldie-lin

--global is a parameter referencing the location of the config file in the disk.

The default action for the command is to do a get, hence why it is omitted. However, the default config file location is global. Hence git config --get user.email also works.

from git config help

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file

dmlemos avatar Mar 29 '17 00:03 dmlemos

In my opinion, --get is more generic than --global, --system, and --local options; since I had few git repositories which setup user.name and user.email locally. Just my two cents.

Could I know why you prefer --global rather than others?

By the way, I set my global user.name and user.email in ~~~/.config/git/config~~ ~/.config/git/config.local instead of ~/.gitconfig, and I'm just aware of that --global didn't work for me. It seems that --global option only works for ~/.gitconfig and ~/.config/git/config, not ~~~/.config/git/config~~ ~/.config/git/config.local, ~~maybe it's a bug of git~~.

Updated:

I found why my setup not work with --global. I did not save user.name and user.email in ~/.config/git/config, actually I saved it in ~/.config/git/config.local which it will be included from ~/.config/git/config by adding a git config --global include.path '~/.config/git/config.local' in ~/.config/git/config.

goldie-lin avatar Mar 29 '17 17:03 goldie-lin

Updated: I found why my setup not work with --global, hope you won't mind.

goldie-lin avatar Mar 30 '17 17:03 goldie-lin