G
G
getNullData2017-06-07 17:17:07
git
getNullData, 2017-06-07 17:17:07

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

Or on the server git pull [email protected]
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel, 2017-06-07
@mrusklon

and what exactly is the problem? Make a git clone of bitbucket and push to ubuntu

R
rustler2000, 2017-06-07
@rustler2000

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

A
Alexey Shumkin, 2017-06-08
@ashumkin

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 question

Ask a Question

731 491 924 answers to any question