Git Mob uses Git global config (v2.1.0) #81
Pinned
rkotze
announced in
Announcements
Replies: 1 comment 3 replies
-
After migrating to the global setup, I don't see the co-author trailer is added to my commits. The |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Selected co-authors are stored globally meaning when switching between projects your co-authors stay the same.
It's likely you will see a warning message because previous versions set a local commit template.
If you've set a local commit template in your config then that template will be updated as usual. However, not when you switch projects. You will see selected co-authors if you run
git mob
command but they will not be in your template. You can update the template by running thegit mob <author initials>
command.If you're only using the template for Git Mob, then it's recommended to remove your local
commit.template
config and use the global config.How to migrate to the global setup:
git config --local --unset commit.template
git mob <author initials>
to update to the global commit template.This does not affect the
git mob-print
command as it reads the globally selected co-authors.I use the local commit template
In the situation, you are using a local commit template and want to suppress the warning message you can. See Git Mob config in the readme for more information. This change is released in version
2.2.0
.CD into your project and run the following:
git config --local git-mob-config.use-local-template true
We don't force the use of a global template as this would not follow the priority order of Git config.
Beta Was this translation helpful? Give feedback.
All reactions