/    Sign up×
Community /Pin to ProfileBookmark

[GITHUB] – Merging code from staging to production

Hi

I am facing a problem lately regarding merging our code from staging to production so I thought to seek some help from the experts ?

We are using GITHUB for our projects. We have two different environment i.e. “staging” where we do our development and perform test etc, and “production” where we have our application for our users. Both of these are on GITHUB where “production” is the “master” and “staging” is in a “branch” under it.

Now, all our developers work on diff modules and they add the code into “staging”, all is fine till here, the problem occurs when they have to merge the code of “staging” to “production”, currently they manually compare the two files (production v/s staging) and merge the changes which takes a hell lot of time. The reason they cannot directly move the entire file is because there are many devs working on the same file on diff functionalities and all of them may not be ready to go to production.

So I was wondering if there is any option on GITHUB that can make our life simple OR is there any other approach we can follow that will minimize our efforts?

Any help will be appreciated.

Thanks

to post a comment
Full-stack Developer

0Be the first to comment 😎

×

Success!

Help @phantom007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...