I'm using a Mac and I'm new to Bitbucket and Sourcetree. I want to push my local repository to a remote repository. So in Sourcetree, I pressed "New", "clone from Url" and I pasted the url right from our remote repository. When I press enter, it says the url isn't valid.
I kinda rushed through the installation, so maybe that could be it.
I'm assuming your local folder is initialized with git
.
There are two ways you can achieve this:
Via Sourcetree app:
Remotes
New Remote
Insert the link to your repo and click on OK
Once that's done, just do a Pull from your branch and commit your changes to the repo
Via Terminal (the easy way)
cd /path/to/your/repo
git remote add origin https://remote_url_of_your_repo
git push -u origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With