You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great idea! Sadly, AFAIK, there is no way to do this without introducing an external script that changes the directory which you would then source in the main script.
If there is an elegant solution, I would love to have this implemented!
This is essentially creating the directory beforehand and them cloning into that directory, which is a valid solution except the issue we are running into is related to how Shell scripts execute commands.
In a Shell script, a subshell is created. cd will change the directory of the subshell, which is different from the shell that is executing the script (i.e. the user's terminal).
When most people use the
git clone
command, they just directly move inside the directory withcd
.I'm suggesting to make
gg cl
automatically change the current directory to the cloned repo... or maybe add a new command?Thanks!
The text was updated successfully, but these errors were encountered: