How can I push to specific folder in the remote repository? I have the following structure on my local C drive:
myfolder/
.git
folder1
folder2
folder3
folder4
.gitignore
I executed git init
command in this folder. After that I did git add .
and then git commit -m "My first commit"
Now I would like to push it to the VSTS remote repository that contains similar structure:
https://helloworld.visualstudio.com/VSTS_folder/_git/VSTS_folder
VSTS_folder/
greenFolder
redFolder
blueFolder
blackFolder
yellowFolder
.gitignore
README.md
where VSTS_folder is the name of the repository. greenFolder, redFolder and yellowFolder have some code in there already. What I would like to do is to push my local stuff to blackFolder remote folder which is empty. I'm trying to avoid messing with the repo and pushing my stuff to the root. I was using git remote add origin https://helloworld.visualstudio.com/VSTS_folder/_git/VSTS_folder/blackFolder
but that didn't work. What's the appropriate git command for achieving this? Thanks.