Is the above syntax deliberately spelt with spelling “Projets” rather than “Projects”?
I did not get it first, but you asked a very good question indeed. I saw that a few weeks ago, and then forgot about it.
On the previous machine, the folder was named “Projets Visual Studio”.
On the current one, the folder is named “Projects Visual Studio”. It was installed by an assembler in the Netherlands, so he used a different installation program. In French there is no c, in English Project is written at the end, so we obtained a strange result.
I corrected this in the new script.
But, before as after the correction, it says me that “remote origin already exists”.
I tried to delete the target folder, but it seems this is not the correct way of doing it.
Oh, what the console shows me is strange, I feel :
D:\Projects Visual Studio\Winform\ListIrfanView\ListIrfanView>\scripts1\Repo2.ps1
Reinitialized existing Git repository in D:/Projects Visual Studio/Winform/ListIrfanView/ListIrfanView/origin/
D:\Projects Visual Studio\Winform\ListIrfanView\ListIrfanView
Cloning into 'D:\Projects Visual Studio\NewRepo\ListIrfanView'...
warning: You appear to have cloned an empty repository.
error: remote origin already exists.
error: src refspec master does not match any
error: failed to push some refs to 'D:\Projects Visual Studio\Winform\ListIrfanView\ListIrfanView'
So, I first see “Reinitialized existing repository”, so I have nothing to do manually to populate the repository as I said a moment ago, but then it tells me : “warning: You appear to have cloned an empty repository.”
So, it has reinitialized the repository, but with nothing in it ?
And then I see “remote origin already exists”, so it seems when doing a new attempt I have to clean what I did before, but I am not quite up-to-date about how to do it.
What folder are you executing this from?
Oh yes this is an important question : the script is launched from the (source) project folder. One of the sub-directories is called origin.
Supposing origin is the repository to clone, I modified line 11 to select it :