nosarthur / gita

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

Subcommand to move to git repo directory #81

Closed murarisumit closed 4 years ago

murarisumit commented 4 years ago

I was using gita for a while, at-times I have move to git repo, if I have too many operation to perform on git repo. so was thinking to have a command by which which I can directly switch from anywhere to git repo.

Current workflow

gita ls <repo>
cd <repo>

Was thinking of having command like

gita cd <repo>

What opinions do you guys have on it.

nosarthur commented 4 years ago

Currently I use

cd `gita ls <repo>`

I am not sure if your proposal is doable, see here:

https://stackoverflow.com/questions/13732221/change-directory-with-python

murarisumit commented 4 years ago

thanks @nosarthur for pointing it out, sure it does make sense.