Skip to content

Commit

Permalink
Update Git config.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 16, 2024
1 parent b8efaa2 commit c9a0088
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tasks/git.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'add_line_to_file'
require 'ansi'
require 'command'
require 'macos'

task :git => [:'git:config', :'git:commands', :'git:aliases']

Expand All @@ -19,7 +20,7 @@ namespace :git do
command 'git', 'config', '--global', 'user.name', 'Markus Reiter'
command 'git', 'config', '--global', 'user.email', '[email protected]'

command 'git', 'config', '--global', 'credential.helper', 'osxkeychain'
command 'git', 'config', '--global', 'credential.helper', 'osxkeychain' if macos?

command 'git', 'config', '--global', 'color.ui', 'auto'

Expand Down Expand Up @@ -75,6 +76,10 @@ namespace :git do
command 'git', 'config', '--global', 'difftool.araxis.path', 'araxiscompare'
command 'git', 'config', '--global', 'diff.tool', 'araxis'
end

git_config_private = "#{git_config_dir}/config-private"
command 'git', 'config', '--global', 'include.path', git_config_private
FileUtils.touch git_config_private
end

desc 'Install Git Commands'
Expand Down

0 comments on commit c9a0088

Please sign in to comment.