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 968791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:32:24+00:00 2026-05-16T02:32:24+00:00

Perhaps I’m missing something about using gi through svn, but how do I keep

  • 0

Perhaps I’m missing something about using gi through svn, but how do I keep around a set of locally modified files without pushing those changes to subversion.

Here’s my broken workflow.

(on master) git svn rebase
git checkout -b issue
*apply changes I need on all my branches*
*changes*
git commit *changes*
git checkout master
git merge issue
git svn dcommit

The problem lies in the fact that svn rebase, or even committing, I lose my locally modified but not checked in files. I don’t want to commit the files, because I don’t want them pulled into an svn commit.

How is my workflow supposed to work in a situation like this?

  • 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-05-16T02:32:25+00:00Added an answer on May 16, 2026 at 2:32 am

    My git-svn workflow looks something like this:

    (on master) git svn rebase
    git checkout work
    ... make commits for all changes, including local-only and those I intend to push up
    git checkout master
    ... cherry-pick changes from work branch
    git svn dcommit
    git checkout work
    git rebase master
    

    The last rebase step removes all the commits from the work branch that have already been committed upstream.

    For the cherry-pick step, I actually use a small shell script that automatically gets all the commits except those that have “NOCOMMIT” in their description. You could use another indicator like “LOCAL” or “NOPUSH” or whatever you like. These commits are those which hang around on the “work” branch and aren’t pushed up to Subversion.

    Here’s my pull-work script:

    #!/bin/sh
    
    BRANCH=`git branch | grep ^\\* | cut -d' ' -f2`
    if [ $BRANCH != "master" ]; then
      echo "$0: Current branch is not master"
      exit 1
    fi
    
    git log --pretty=oneline work...master | grep -v -E '(NOCOMMIT|DEBUG):' | cut -d' ' -f1 | tac | xargs -l git cherry-pick
    

    Note the use of subtleties like tac that reverse the order of the listed commits so they get applied to master in the same order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Perhaps I am missing something but how does one go about retrieving the xml
Perhaps I'm missing something here, but it seems that anything in the object model
Perhaps I'm missing something here, but I want the user to be able to
Perhaps I'm missing something but when I scan an NFC tag via a galaxy
Perhaps I'm missing something with the concept of Extension Methods, but I cannot gain
Perhaps I am missing something, but I am just learning javascript. My understanding of
Perhaps I'm missing something major, but is there a way to use Object.watch() on
Perhaps I'm going about this the wrong way, but I'm using HXT to read
Perhaps I am missing something from the Knockout.js tutorial, but I find it a
Perhaps I'm missing something obvious here, but I'm having a hard time setting a

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.