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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 - https://mmikowski.github.io/git-cross-origin/

Here's official git documentation - https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes

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
TAGS
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,259 views 19 18
Join discussion

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