Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Define Different Pull and Push Remotes for Subtrees

Edited

Hello,

Sourcetree defines one remote for a subtree. In my case, I have an origin repo, which is forked from an upstream repo. I generated the subtree from the origin and this is the remote address that Sourcetree uses for the subtree -for both push and pull.

However, once in a while I would like to pull from the upstream to update my subtree with changes from other users. This requires the upstream remote address be defined as a second address, which is different than the origin address obviously.

Is there a way to define a second remote address for the subtree with Sourcetree so that I can pull and push from different addresses?

Quick fix ofcourse manually change the address when doing pull and push, which is not very convenient.

Baris

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 19, 2019

Hi

No I'm afraid Sourcetree doesn't support multiple remotes for Subtrees. Looking at https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree it looks like there is no obvious blocker to supporting it in the future.

You can raise a feature request at https://jira.atlassian.com under the SourcetreeWin or Sourcetree projects.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events