We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.gitconfig
1 parent aa94d89 commit 29b2eaaCopy full SHA for 29b2eaa
cli/dotfiles.go
@@ -176,8 +176,8 @@ func (r *RootCmd) dotfiles() *clibase.Cmd {
176
177
var dotfiles []string
178
for _, f := range files {
179
- // make sure we do not copy `.git*` files
180
- if strings.HasPrefix(f.Name(), ".") && !strings.HasPrefix(f.Name(), ".git") {
+ // make sure we do not copy `.git*` files except `.gitconfig`
+ if strings.HasPrefix(f.Name(), ".") && (!strings.HasPrefix(f.Name(), ".git") || f.Name() == ".gitconfig") {
181
dotfiles = append(dotfiles, f.Name())
182
}
183
0 commit comments