workstation/roles/home-cli/tasks/gitconfig.yml

105 lines
2.7 KiB
YAML

---
# Copyright 2021 Anthony Perkins
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Git pull.rebase
community.general.git_config:
name: pull.rebase
value: 'true'
scope: global
- name: Git push.default
community.general.git_config:
name: push.default
value: simple
scope: global
- name: Git color.ui
community.general.git_config:
name: color.ui
value: auto
scope: global
- name: Git credential.helper
community.general.git_config:
name: credential.helper
value: store
scope: global
- name: Git gui.encoding
community.general.git_config:
name: gui.encoding
value: utf-8
scope: global
- name: Git guitool.Rebase.cmd
community.general.git_config:
name: guitool.Rebase.cmd
value: rebase
scope: global
- name: Git user.name
community.general.git_config:
name: user.name
value: Anthony Perkins
scope: global
- name: Git user.email
community.general.git_config:
name: user.email
value: anthony@acperkins.com
scope: global
- name: Git alias.ci
community.general.git_config:
name: alias.ci
value: commit
scope: global
- name: Git alias.co
community.general.git_config:
name: alias.co
value: checkout
scope: global
- name: Git alias.ff
community.general.git_config:
name: alias.ff
value: merge --ff-only
scope: global
- name: Git alias.graph
community.general.git_config:
name: alias.graph
value: log --graph --oneline --all
scope: global
- name: Git alias.l1
community.general.git_config:
name: alias.l1
value: log --pretty=oneline
scope: global
- name: Git alias.last
community.general.git_config:
name: alias.last
value: log -1 HEAD --pretty=fuller
scope: global
- name: Git alias.lastmail
community.general.git_config:
name: alias.lastmail
value: format-patch --stdout -1 HEAD
scope: global
- name: Git alias.unstage
community.general.git_config:
name: alias.unstage
value: reset HEAD --
scope: global
- name: Git alias.up
community.general.git_config:
name: alias.up
value: pull --rebase
scope: global
- name: Git URL rewrite
community.general.git_config:
name: url."https://code.acperkins.com/".insteadof
value: https://git.acperkins.com/
scope: global