-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: restructure config and relative include file path
- Loading branch information
1 parent
797560a
commit 5b09739
Showing
13 changed files
with
377 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
LINEARCODE Summary | ||
|
||
# Elaboration | ||
|
||
# Issue Status: | ||
# Resolve: # | ||
# Related: # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
topic: summary | ||
|
||
# Elaboration | ||
|
||
# Issue Status: | ||
# Resolve: # | ||
# Related: # |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## ------ Identity ------ ## | ||
# Add details for specific company identity | ||
# Assumes use of Linux for ~ expansion | ||
|
||
# Add identity to all commits | ||
[user] | ||
name = Johnny Stevenson | ||
|
||
# Add company email address to GitHub account | ||
# and use when creating SSH key | ||
email = "johnny@company-name.com" | ||
|
||
# SSH Key signing with allowed SSH key signatures | ||
signingkey = ~/.ssh/id-company.pub | ||
|
||
## Identity for using GitHub API | ||
[github] | ||
user = practicalli-johnny | ||
|
||
## ------ Git Behaviour ------ ## | ||
|
||
[init] | ||
# scripts and hooks to add when creating a new local Git repository | ||
# templateDir = ~/.config/git/repo-template/ | ||
|
||
# default branch name when creating a new local repository | ||
defaultBranch = main | ||
|
||
[core] | ||
# Set which editor to use for editing commit messages (when not included with -m) | ||
# VISUAL or EDITOR environment variables also set the choice of editor | ||
# vi used if not set. Typical examples are nvim or emacsclient | ||
editor = astronvim | ||
|
||
# file and directory patterns to ignore across all projects | ||
excludesfile = ~/.config/git/ignore-company | ||
|
||
# Tool to page through long output (e.g. git log). `less` is default | ||
# pager = less | ||
|
||
# Ensure Linux & MacOSX line endings in checked out text files | ||
autocrlf = input | ||
|
||
[commit] | ||
# Default commit message - useful if team has a commit message policy | ||
template = ~/.config/git/commit-message-company | ||
# Automatically sign every commit | ||
gpgsign = true | ||
|
||
[tag] | ||
# Automatically sign every tag | ||
gpgsign = true | ||
|
||
[fetch] | ||
# Remove deleted remote branches from local repository | ||
prune = true | ||
|
||
## ------ Security ------ ## | ||
|
||
# Use SSH key passphrase stored in MacOSX Keychain with ssh-add command | ||
# ssh-add --apple-use-keychain $HOME/.ssh/id_ed25519 | ||
# [credential] | ||
# helper = osxkeychain | ||
|
||
# Use SSH key to sign commits and tags | ||
[gpg] | ||
format = ssh | ||
|
||
# Self-define SSH keys that should be considered authentic locally | ||
[gpg "ssh"] | ||
allowedSignersFile = ~/.config/git/allowed-signatures-company | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# Company specific Git configuration | ||
# | ||
# Assumes use of MacOSX and ~ expansion not working for paths | ||
# Replace /Users/practicalli/ path with your own $HOME location | ||
|
||
## -- Identity | ||
# Add identity to all commits | ||
[user] | ||
name = Johnny Stevenson | ||
|
||
# Add company email address to GitHub account | ||
# and use when creating SSH key | ||
email = "johnny@company-name.com" | ||
|
||
# SSH Key signing with allowed SSH key signatures | ||
signingkey = /Users/practicalli/.ssh/id-company.pub | ||
|
||
## Identity for using GitHub API | ||
[github] | ||
user = practicalli-johnny | ||
|
||
## -- Git Behaviour | ||
|
||
[init] | ||
# scripts and hooks to add when creating a new local Git repository | ||
# templateDir = ~/.config/git/repo-template/ | ||
|
||
# default branch name when creating a new local repository | ||
defaultBranch = main | ||
|
||
[core] | ||
# Set which editor to use for editing commit messages (when not included with -m) | ||
# VISUAL or EDITOR environment variables also set the choice of editor | ||
# vi used if not set. Typical examples are nvim or emacsclient | ||
editor = astronvim | ||
|
||
# file and directory patterns to ignore across all projects | ||
excludesfile = /Users/practicalli/.config/git/ignore-company | ||
|
||
# Tool to page through long output (e.g. git log). `less` is default | ||
# pager = less | ||
|
||
# Ensure Linux & MacOSX line endings in checked out text files | ||
autocrlf = input | ||
|
||
[commit] | ||
# Default commit message - useful if team has a commit message policy | ||
template = /Users/practicalli/.config/git/commit-message-company | ||
# Automatically sign every commit | ||
gpgsign = true | ||
|
||
[tag] | ||
# Automatically sign every tag | ||
gpgsign = true | ||
|
||
[fetch] | ||
# Remove deleted remote branches from local repository | ||
prune = true | ||
|
||
## -- Security | ||
|
||
# Use SSH key passphrase stored in MacOSX Keychain with ssh-add command | ||
# ssh-add --apple-use-keychain $HOME/.ssh/id_ed25519 | ||
[credential] | ||
helper = osxkeychain | ||
|
||
# Use SSH key to sign commits and tags | ||
[gpg] | ||
format = ssh | ||
|
||
# Self-define SSH keys that should be considered authentic locally | ||
[gpg "ssh"] | ||
allowedSignersFile = /Users/practicalli/.config/git/allowed-signatures-company | ||
|
||
|
||
## -- Diff & Merge | ||
|
||
# TODO: test configuration for p4merg tool on MacOSX | ||
|
||
# [diff] | ||
# tool = p4merge | ||
|
||
# [difftool "p4merge"] | ||
# cmd = "p4merge $LOCAL $REMOTE" | ||
|
||
# [merge] | ||
# tool = p4merge | ||
|
||
# [mergetool "p4merge"] | ||
# cmd = "p4merge $BASE $LOCAl $REMOTE $MERGED" | ||
# trustExitCode = true | ||
# keepTemporaries = false | ||
# keepBackup = false | ||
# prompt = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## -- Identity | ||
|
||
# Add identity to all commits | ||
[user] | ||
name = Johnny Practicalli | ||
|
||
# Use GitHub no-reply email address to keep real address private | ||
email = "******+practicalli-john@users.noreply.github.com" | ||
|
||
## Identity for using GitHub API | ||
[github] | ||
user = practicalli-johnny | ||
|
||
|
||
## -- Git Behaviour | ||
|
||
[commit] | ||
# Default commit message - useful if team has a commit message policy | ||
template = ~/.config/git/commit-message-practicalli |
Oops, something went wrong.