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

  • Home
  • SEARCH
  • 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 3500508
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:44:33+00:00 2026-05-18T12:44:33+00:00

In the company I work for, we have the policy that all code should

  • 0

In the company I work for, we have the policy that all code should be reviewed before it is checked in into the SVN repository. Normally, before I commit, I just ask a collegue to review, but at this moment there is nobody around for a couple of days, and I have several tasks to do with the same class.

I installed git, and used git-svn to make a local repository. I committed every change I am going to propose after some time, and with git-svn dcommit, I can sync my stuff inside the master repository.

The question now is: what happens if my co-worker that will review my stuff in a few days disagrees with one commit, or wants me to make some additional changes (e.g. code comments)? How do I do that without having to do an extra commit, that will eventually show up in my SVN master repository?

Example, let’s say – for the sake of understandibility – that I am working on one file.

  • SVN fetched rev 1000
  • Added code change A, git commit.
  • Added code change B, git commit.
  • Added code change C, git commit.

Now, my co-worker accepts changes A and C, but disagrees with change B, and wants more comments to go in along with change B. The result I want to end up with eventually is:

  • SVN rev 1001 – Code change A
  • SVN rev 1002 – Modified code change B + addtitional comments
  • SVN rev 1003 – Code change C.

I am not very familiar with git, and am quite familiar with SVN. How do I change the contributions I committed into code change B without making a fourth commit?

  • 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-18T12:44:34+00:00Added an answer on May 18, 2026 at 12:44 pm

    First off, you shouldn’t need an additional VCS to perform code reviews at your company before committing to trunk. khmarbaise’s answer is the right one. The proper (and sane) way to do this is to create a branch, make your changes in the branch, have your colleague check out that branch when you’re done, review the code, commit remedial changes your branch, and then whoever has authority will merge your branch into trunk. This is basic VCS protocol. If this is not the way your company does it, it’s a sure sign your company’s Doing It Wrong when it comes to VCS.

    If you absolutely must use an external tool because your company policy is inane, then to to address the following part of your question

    Example, let’s say – for the sake of
    understandibility – that I am working
    on one file.

    • SVN fetched rev 1000
    • Added code change A, git commit.
    • Added code change B, git commit.
    • Added code change C, git commit.

    Now, my co-worker accepts changes A
    and C, but disagrees with change B,
    and wants more comments to go in along
    with change B. The result I want to
    end up with eventually is:

    • SVN rev 1001 – Code change A
    • SVN rev 1002 – Modified code change B + addtitional comments
    • SVN rev 1003 – Code change C.

    I am not very familiar with git, and
    am quite familiar with SVN. How do I
    change the contributions I committed
    into code change B without making a
    fourth commit?

    I don’t even understand why you would want to avoid a fourth commit in the first place, if you’re allowed to make three commits that affect one feature.

    If you really, really are intent on going through with this whole idea, then yes, you can do it, and to do so, you would need to very carefully use git rebase --interactive. This powerful command can allow you to go back through your commits and completely alter the changes made in each one. I must emphasize that this has high potential for loss of work (or at least cost you significant time in recovery), and should only be done if you have a very firm knowledge of git itself.

    But you really, really should be using SVN branching and merging to do all of this.

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

Sidebar

Related Questions

At the company I work for we have a Utility project that is referenced
For work I have to code with an external company's API to deal with
The company I work for have millions of documents that are stored and shared
I have a GIT repository that I manage for my office. Because of company
The company I work for we have a CBT system we have developed. We
In the company where I work we have major releases twice every year. Extensive
At the company I work for, I have created a Error Logging class to
The company I work for makes hardware that communicates to the computer though a
I have written a nice little Firefox Add-On for the company I work for
The company I work for is currently looking to move from traditional waterfall into

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.