-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add follow up your last commit #139
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
Conversation
Is it a little too much 🤔?
Thanood
commented
Feb 23, 2017
I love it. 😂
Discovered this repo recently so I am just giving my contributions. Mostly going through my aliases. Hope it helps other people as well.
Let us wait for some more upvotes?
aliases
at times can get too messy.
I thought the option--global
in git config --global user.email
was a typo, should it be --get
?
--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
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
commented
Mar 30, 2017
Updated: I found why my setup not work with --global
, hope you won't mind.
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 😄