.gitconfig ファイルに次の git エイリアスがあります。
clone-with-branches = "!cloneWithBranches() { \
git clone $1 $2 ; \
}; cloneWithBranches"
次のように使用することになっています。
git clone-with-branches folder1 folder2
(folder1 が相対パスでアクセスできる有効な作業用 git リポジトリであると仮定します)
コマンドラインで入力すると、
git clone folder1 folder2
確かに、folder2 で folder1 のクローンを取得しますが、エイリアスを使用した場合:
git clone-with-branches folder1 folder2
エラーが出ます
fatal: repository 'folder1' does not exist.
私が見逃したことを誰か教えてもらえますか?