LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2011, 01:11 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
git organization with two users using bitbucket


So this is my first real use of git. I set up a private repository at bitbucket and gave my partner read only access. He forked and gave me read only access to his fork.

We have a master branch and a development branch, each. I guess my real question is how I should set up the branches and which should be remote tracking.

Right now I see:
Code:
master
dev
bitbucket/master
bitbucket/dev
partner/master
partner/dev
none of which are remote tracking.

My intent was for me to fetch from partner and push to bitbucket. My partner would fetch from me and push to his bitbucket. We're considering my local repo sort of the main repo, my bitbucket a mirror of that so he can access it. His bitbucket repo is just a mirror of his local one so I have access.

His view is slightly different because he forked on bitbucket and did a clone of his fork. His master is a remote tracking branch of his-bitbucket/master and likewise for dev / his-bitbucket/dev.

Am I making this too complicated? What I thought would be simplest is if we had different remotes for push/fetch so my master branch would be a remote tracking branch of bitbucket/master for pushing and a remote tracking branch of partner/master for fetching. Is this possible?

Edit: Also, each of our respective bitbucket remotes have mirror=true

Last edited by Meson; 11-01-2011 at 01:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] git push in a git-init without --bare option? xeon123 Linux - Newbie 1 06-27-2011 03:44 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 07:25 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration