1
0
Fork 0
mirror of synced 2024-05-26 12:01:11 -04:00

Add information about configuring Git author (#31)

This commit is contained in:
Tim Byrne 2017-01-11 23:03:53 -06:00
parent f4eca5c7b2
commit b44737b389
No known key found for this signature in database
GPG key ID: 6CBE24C2FD8CF76E

View file

@ -23,6 +23,32 @@ revision of your repository, you probably want to run
yadm reset --hard HEAD
```
### While committing I got the message, _"Please tell me who you are"_. Why?
Whenever a Git commit is generated, Git requires information about the author of
the commit. This can be configured via the `git config` command. Usually the
best approach is to configure this information globally, and then manage your
global Git configuration via **yadm**. This allows the configuration to follow
you wherever your dotfiles live.
```
git config --global "user.email" "your-email@domain"
git config --global "user.name" "Your Name"
yadm add ~/.gitconfig
```
However, if you want commits to your **yadm** repo to use a different author,
you can configure these settings in the **yadm** repo itself.
```
yadm gitconfig "user.email" "alternate-email@domain"
yadm gitconfig "user.name" "Alternate Name"
```
Note: Configuring these settings directly in the **yadm** repo will require you
to configure it each time you clone the repo.
### How can I display untracked files with a `yadm status` command?
By default, **yadm** is configured to ignore untracked files when displaying a