Hi all, how are you?. I'm new with sourcetree and I've a doubt, I'm working with a proyect in mplabx then I've created the repository there with no problem so I have my project folder with a .git folder in there. I want to create a remote repository on github to push the local repository that I've previously created but I'm worried about if creating this repository because I don't know if in the Destination Path, when I write the address of the folder where the local repository is, then I don't know if this procedure will erase the content of the local repository folder or it will even recognize the .git folder and others and its content.
Can you help me with that?
Here is the image with the remote repository creation window.
Hi @Valery Ramirez. You need to set your destination path and you could be calm about the stability of this process. Adding of the new remote will not affect your code and will not erase your project. It'll be new remote repository URL and that's all. You can decide which remote you want to use any moment.
Alternative way to add remote via Terminal:
cd /path/to/your/project
git remote add origin https://path_to_your_repo
git push -u origin master
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.