Skip to content

Commit 14a164f

Browse files
authored
🗄 chore: Move git package (#53)
See #40.
2 parents 3a59e19 + 5b59941 commit 14a164f

13 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/test_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
"clean",
1818
"cli-network",
1919
"core",
20-
# "git", # CI machine contains existed .gitconfig file
20+
"git",
2121
"javascript",
2222
# "macos-alfred", # Script error to be fixed
2323
# "macos-app-dev", # Depends on `git`

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Temporary Items
3535
# End of https://www.toptal.com/developers/gitignore/api/macos,nova
3636

3737
# Custom
38+
/pkg/git/custom/custom.gitconfig
3839
/zsh/.zcompdump
3940
/zsh/.zsh_history
4041
/zsh/.zsh_sessions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ stow: $(OS)-stow
1717
zsh: $(OS)-zsh
1818

1919
git: $(OS)-git
20-
stow --no-folding --target "${HOME}" 'git'
20+
ln -sf '.dotfiles/pkg/git/.gitconfig' "${HOME}"
2121
micro: $(OS)-micro
2222
stow --no-folding --dir 'pkg/micro' --target "${HOME}" 'stow'
2323
ansible: stow

makefiles/macos.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ macos-duti: macos-brew
112112
# This is a full suite of git plugins and configurations
113113
# Most other target that requires git don't need this
114114
macos-git: macos-brew
115-
brew bundle --file brewfiles/git.Brewfile
115+
brew bundle --file pkg/git/git.Brewfile
116116

117117
macos-micro: macos-brew
118118
brew install micro

makefiles/ubuntu.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ubuntu-essential: ubuntu-core ubuntu-locale-zhtw ubuntu-tz-taipei ubuntu-ssh
1717
sudo apt-get install -y build-essential
1818

1919
ubuntu-git: ubuntu-stow
20-
xargs sudo apt-get install -y < aptfiles/git.Aptfile
20+
xargs sudo apt-get install -y < pkg/git/git.Aptfile
2121

2222
ubuntu-javascript:
2323
echo "dotfiles are installed, but not the runtime environments."

git/.gitconfig renamed to pkg/git/.gitconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ updated = green bold
5555
ui = auto
5656

5757
[commit]
58-
template = "~/.git_commit_template"
58+
template = "~/.dotfiles/pkg/git/.git_commit_template"
5959

6060
[core]
61-
attributesFile = "~/.gitattributes"
62-
excludesFile = "~/.gitignore_global"
61+
attributesFile = "~/.dotfiles/pkg/git/.gitattributes"
62+
excludesFile = "~/.dotfiles/pkg/git/.gitignore"
6363
editor = "nano"
6464

6565
[diff]
@@ -85,11 +85,11 @@ lineNumber = true
8585
autocorrect = prompt
8686

8787
[include]
88-
path = "~/.gitconfig-custom" # include other customizations
89-
path = "~/.gitalias"
88+
path = "~/.dotfiles/pkg/git/custom/custom.gitconfig" # include other customizations
89+
path = "~/.dotfiles/pkg/git/alias.gitconfig"
9090

9191
[includeIf "hasconfig:remote.*.url:https://github.com/**"]
92-
path = "~/github-tomy0000000.gitconfig" # include the user block
92+
path = "~/.dotfiles/pkg/git/github-tomy0000000.gitconfig" # include the user block
9393

9494
[init]
9595
# https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://git-scm.com/docs/gitignore
12
# Created by https://www.toptal.com/developers/gitignore/api/macos,xcode,dropbox,visualstudiocode
23
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,xcode,dropbox,visualstudiocode
34

File renamed without changes.

0 commit comments

Comments
 (0)