add ssh compatabilty for gitconfigs
This commit is contained in:
@ -27,8 +27,13 @@ for config in "$CONFIG_DIR"/*.gitconfig; do
|
||||
echo "Create config for $domain"
|
||||
|
||||
cat <<EOF >> "$HOME/.gitconfig"
|
||||
|
||||
[includeIf "hasconfig:remote.*.url:https://**$domain/**"]
|
||||
path = $config
|
||||
[includeIf "hasconfig:remote.*.url:ssh://git@**$domain/**"]
|
||||
path = $config
|
||||
[includeIf "hasconfig:remote.*.url:git@$domain:**"]
|
||||
path = $config
|
||||
EOF
|
||||
|
||||
done
|
||||
|
Reference in New Issue
Block a user