Hello Guys,
I am new to Git, sorry if this is a silly question.
I have different URLs for push and Fetch(read-only repo) configure. Using sourceTree, i can fetch from my read-only repo. But when I want to push changes using SourceTree, I cannot because it is pointing to my read-only repo where i cannot write. How can i achieve something as below using SourceTree
$ git remote -v
origin git://git-readonly.abc.com/MyRepo (fetch)
origin git@git.abc.com:MyRepo (push)
I have configure it using the command below. But could not make it work with SourceTree. Using Bash it works.
$ git remote set-url --add --push origin git@git.abc.com:MyRepo
Sourcetree doesn't currently support split push/fetch urls, for a single remote, however you can specify a second remote, with push/pull urls and Sourcetree will give the option to choose when pushing or pulling
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.