gitless icon indicating copy to clipboard operation
gitless copied to clipboard

gl init should automatically create a new folder

Open JohanSpaedtke opened this issue 9 years ago • 0 comments
trafficstars

One case where I think git is more intuitive than gl is when you're about to clone a new repo

compare

cd /a/folder/with/lots/of/git/projects
gl init https://github.com/SomeUser/SomeRepo.git                                                                                                                                                                               
✘ fatal: destination path '/a/folder/with/lots/of/git/projects' already exists and is not an empty directory.

to

cd /a/folder/with/lots/of/git/projects
git clone https://github.com/SomeUser/SomeRepo.git
Cloning into 'SomeRepo'...

I think it makes sense the way git does it and it saves me from writing

mkdir SomeRepo
cd SomeRepo

JohanSpaedtke avatar Oct 28 '16 14:10 JohanSpaedtke