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