nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.68k stars 74 forks source link

Gita clone -g should create group if not exists. #260

Open vunhatchuong opened 1 year ago

vunhatchuong commented 1 year ago

My plan is to make a install.sh script to setup my project. It would be nice to have the ability to make a new group if it doesn't exist.

❯ gita clone -f gita-config-http -g test
usage: gita clone [-h] [-C DIRECTORY] [-p] [-n] [-g {DAA} | -f] clonee
gita clone: error: argument -g/--group: invalid choice: 'test' (choose from 'DAA')
nosarthur commented 1 year ago

thanks, this is a good point

nosarthur commented 7 months ago

I am working on this case #271 such that gita freeze would save the group information as well. When that works, the -g option via gita clone would overwrite the original group information