first thanks for the great service you are providing.
i'm using webstorm on ComputerA and B.
On computerA, I correctly set webstorm to use GIT repository on Bitbucket, and i'm able to push my commits there.
Now, on computerB, where I also have webstorm installed, I would like to retrieve the same repository from Bitbucket -> ComputerB. Also I would like to be able to make change from computer A or B, and have it synch on both computers, from Bitbucket repository.
How should I do to get files copied from the repository into computerB? Should I create several users on Bitbucket ? Because I try to access bitbucket on computerB with same user.
So I tried to setup access to same repository on computerB, then "fetched" project: that was successfull but no file were downloaded. So what should I do ?
It's not a problem to use the same Bitbucket account to clone a repository to a multiple computers and work independently on the computers and sync the changes via Bitbucket repository. I have several cases where I do exactly that - it's just a normal git workflow.
Think it this way: from git point of view the following cases are equal:
In both cases commits can be made to all the local repositories and pushed to and pulled from Bitbucket.
I agree that this is the best way. But the OP's own answer says (paraphrased): I cloned to both machines and tried pulling to each. It works, but I don't know if it is a viable solution.
I'm not sure why he says that it might not be viable, but if he doesn't want to have to pull, things are going to get complicated.
If the project is small enough, use a tool like DropBox that keeps files in sync AND local (Git sometimes has odd problems operating on network shares). As long as the entire repository is in DropBox (including .git/) you should get the result you're looking for.
Note: Do NOT attempt to modify the repository on both computers at the same time using this method.
Err ... I fail to see why this can't be accomplished. Every git repository clone is a first-class citizen and can work with numerous remote repositories. I have several cases where I have cloned a repository from Bitbucket to multiple computers using the same account and I keep them sync via Bitbucket - that's just a normal git workflow.
Hi thanks for your answers, I confirm I got that working.
From computerA I initally pushed my app code into bitbucket.
Then on computerB, from webstorm I chose to clone from VCS first thing, then choose, Git, then specified my bitbucket URL. This cloned the content online into computerB.
Now, whenever I make a change on one computer, I comit and push, and on the other computer I go into the concerned branch and update project. And I got all the changes, so it works as intended.
It's not a problem that I have to comit / push / update, sorry if I was not clear Seth.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs