Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Repository setup question

Is it possible to have a clone of a clone of a repository?

For example,

GitLab repo >(cloned to)> Local shared folder >(cloned to)> local working folder

whereas the "local working folder" is where the user can make changes, which are then pushed to the "Local shared folder". Then, once enough changes are made, the "local shared folder" is pushed into the "GitLab repo"?


1 answer

1 accepted

0 votes
Answer accepted

May be you want two separate remotes where one can act as your local shared repo. 

You should setup two different remotes and have one of it shared with everyone and the second restricted for only those needed to push everything from remote A to remote B. 

Here is a nice article on working with multiple remotes -

Here's official git documentation -

You can set this up in Sourcetree using settings -> remotes in each repo. 

Hello, thank you for replying.

So, the local master repository would still need a remote, right? In order for users to be able to push and pull off of it?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,384 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you