Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:28:43+00:00 2026-06-17T12:28:43+00:00

I have a development repository and a deploy repository. When deploying code, a codebase

  • 0

I have a development repository and a deploy repository. When deploying code, a codebase is checked out of dev, rsync’d to the deploy working copy, and committed to the deploy repository. These repositories are therefore separate, but similar.

On dev, I have a branch. I would like to “apply” that branch to the deploy working copy. In other words, I would like to replay all commits on the branch (excluding merges) to the deploy repository (in one commit, if possible), or to take a diff between branch and master and apply it to the deploy working copy.

I think a similar svn command would be:

svn merge $SVN_REPO/trunk $SVN_REPO/branch/dev_branch deploy_dir

… where deploy_dir doesn’t even need to be a working copy.

Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:28:44+00:00Added an answer on June 17, 2026 at 12:28 pm

    One way is to fetch the branch from the other repo:

    cd <deploy-path>
    git remote add devel <devel-path>
    git fetch devel
    
    git cherry-pick devel/master...devel/branch  # Assuming your branch is based on master
    

    Another way is to create a patch and then apply it:

    git diff commitid1 commitid2 > something.patch
    cd deploy
    git apply something.patch
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have these 2 branches on my remote GitHub repository: development master How do
I have imported my svn repository to git. My current branch for development is
I have a development clone and a live clone of a git repository, pushing
I have a remote git repository setup for centralized development within my team. However,
On the server I have bare repository which is origin for development process and
I have a git repository on unfuddle.com. I've been working locally on my windows
I have a master and a development branch in Github and the repository is
I have been tasked to come up with a code repository to host our
i have a git repository which is my development Repository. I need to upload
I have two development trees v3.3, and v3.4 in one SVN repository. They both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.