Answer the question
In order to leave comments, you need to log in
How to get changes from bitbucket if the main rep is on the server?
Good afternoon.
I got the project to work, and there a strange scheme was implemented before me.
There is Ubuntu Server, git is installed on it and the main repository is deployed there.
The developer uploaded the changes to bitbucket and then merged them into the main turnip.
I'm used to working with bitbucket as the main repository and just git pull on the server.
But here it’s somehow tricky =)
Tell me how to pick up the changes from bitbucket and upload them to the main server storage.
Something like
git push [email protected]:/home/user/git/repo.git
git pull [email protected]
Answer the question
In order to leave comments, you need to log in
and what exactly is the problem? Make a git clone of bitbucket and push to ubuntu
you pull from the first remote to the local one - git pull origin master.
You merge the fix, you commit,
you can then push back - git push origin master.
add a second remote - git remote add secondary ...
push into it from the local - git push secondary master
if it doesn't push - on a new one - clone from the origin to a new folder (that's why push to the origin was needed), add secondary, pull from the secondary , fix conflicts and commit to local, push to secondary, push to origin
read Pro Git. Distributed Git - Distributed Workflows
Upd.
Distributed Git - Contributing to a Project
to enlightenment
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question