How to push a local repository to remote use "SourceTree"
I tried this on SourceTree 1.6+
Click View -> Hosted Repositories
Here you will see all your remote repositories.
Click the buttom at the bottom Create New Repository...
This will allow you to create a new repo on Bitbucket. Enter name and create your repo.
Once you see your new repository in the list, right click on it and click Copy Project URL to Clipboard
Now use this URL in the URL/Path
field for the Remote details when you add a remote to your local repository.
Admin
Updated on July 20, 2022Comments
-
Admin almost 2 years
As the title says, I use GIT by SourceTree.
My question is how can I create a remote repository by SourceTree directly ?
For example, I have a directory named "Test" at local. There is some text file in "Test" and the remote server doesn't have any repository.
Now, I need push "Test" to server. Is there any way to create a remote repository by SourceTree?
Not using command line or other way, Just use SourceTree(Which button or how setting... etc. ?) (I found a command line is "scp -r LocalFileName RemoteFilePath".) Hope them has same effect.
p.s. I'm using SSH