Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
dmlemos wants to merge 1 commit into git-tips:master
base: master
Choose a base branch
Loading
from dmlemos:follow_up_your_last_commit

Conversation

Copy link
Contributor

@dmlemos dmlemos commented Feb 23, 2017

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 😄

Thanood reacted with thumbs up emoji
Copy link
Contributor

hemanth commented Feb 23, 2017

Is it a little too much 🤔?

Copy link

Thanood commented Feb 23, 2017

I love it. 😂

Copy link
Contributor Author

dmlemos commented Feb 23, 2017

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

Copy link
Contributor

hemanth commented Feb 24, 2017

Let us wait for some more upvotes?

aliases at times can get too messy.

Copy link

goldie-lin commented Mar 28, 2017
edited
Loading

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

Copy link
Contributor Author

dmlemos commented Mar 29, 2017

--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

Copy link

goldie-lin commented Mar 29, 2017
edited
Loading

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.

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /