Cloning a github repo into the workspace
Hi,
I have a question and a problem and my bash-fu isn't the greatest.
My question:
Is it ok to use the startup script to clone the repo I will want to work on? I've got this working and I can also do everything with Git successfully via VSCode or the terminal. I'm just not certain it is the right way to do it.
My (minor) problem:
If it is ok to use the startup script to clone the repo, the cloning gives an ugly warning (which coder highlights red) on a second start, because the repo is already cloned.
I thought I could do something like this:
But, the conditional doesn't work. I've also tried all kinds of variations. Nothing seems to make the condition true.
I feel like a total noob that this bash conditional isn't working.
Any guiding tips would be greatly appreciatated.
I have a question and a problem and my bash-fu isn't the greatest.
My question:
Is it ok to use the startup script to clone the repo I will want to work on? I've got this working and I can also do everything with Git successfully via VSCode or the terminal. I'm just not certain it is the right way to do it.
My (minor) problem:
If it is ok to use the startup script to clone the repo, the cloning gives an ugly warning (which coder highlights red) on a second start, because the repo is already cloned.
I thought I could do something like this:
repo being the name of the repo I want cloned. But, the conditional doesn't work. I've also tried all kinds of variations. Nothing seems to make the condition true.
I feel like a total noob that this bash conditional isn't working.
Any guiding tips would be greatly appreciatated.