Nordstrom / chefdk_bootstrap

Set up your workstation for Chef development in minutes
https://supermarket.chef.io/cookbooks/chefdk_bootstrap
Apache License 2.0
88 stars 44 forks source link

Create ~/.gitconfig if missing #51

Closed dougireton closed 6 years ago

dougireton commented 8 years ago

Use this template to create a ~/.gitconfig for the user. We will need to prompt the user for name and email.

The git cookbook has a git_config LWRP we should look at.

[user]
        name = Jane Doe
        email = janedoe@example.com
[core]
        editor = atom --wait
        autocrlf = True

[alias]
        co = checkout
        br = branch
        ci = commit
        st = status
        lol = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
dougireton commented 8 years ago

Also set push.default:

warning: push.default is unset; its implicit value has changed in
Git 2.0 from 'matching' to 'simple'.

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple
dougireton commented 8 years ago

On Mac use this:

git config --global credential.helper osxkeychain
MarkGibbons commented 6 years ago

Fixed by #157