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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:46:20+00:00 2026-05-14T20:46:20+00:00

This is what I’d like my workflow to look like at a conceptual level:

  • 0

This is what I’d like my workflow to look like at a conceptual level:

  1. I hack on my new feature for a while
  2. I notice a typo in a comment
    • I change it
    • Since the typo is completely unrelated to anything else, I put that change in a pile of comment fixes
  3. I keep working on the code
  4. I realize I need to flesh out a few utility functions
    • I do so
    • I put that change in its own pile
  5. Steps 2, 3, and 4 each repeat throughout the day
  6. I finish the new feature and put the changes for that feature in a pile
  7. I push nice patches upstream: One with the new feature, a few for the other tweaks, and one with a bunch of comment fixes if enough have accumulated

Since I’m both lazy and a perfectionist, I want to be able to do some things out of order: I might correct a typo but forget to put it in the comment fix pile; when I prepare the upstream patches (I’m using git-svn, so I need to be pretty deliberate about these), I’ll then pull out the comment fixes at that point. I might forget to separate things altogether until the very end. But I might /also/ have committed some of the piles along the way (sorry, the metaphor is breaking down …).

This is all rather like just using Eclipse changesets with SVN, only I can have different changes to the same file in different piles (having to disentangle changes into different commits is what motivated me to move to git-svn, in fact …), and with Git I can have my full discombobulated change history, experimental branches and all, but still make a nice, neat patch.

I’ve just recently started with Git after having wanted to for a good while, and I’m quite happy so far. The biggest way in which the above workflow doesn’t really map into Git, though, is that a “bin” can’t really be just a local branch, since the working tree only ever reflects the state of a single branch. Or maybe the Git index is a “pile,” and what I want is to have more than one somehow (effectively).

I can think of a few ways to approximate what I want (maybe creative use of stash? Intricate stash-checkout-merge dances?), but my grasp on Git isn’t solid enough to be sure of how best to put all the pieces together. It’s said that Git is more a toolkit than a VCS, so I guess the question comes down to: How do I build this thing with these tools?

  • 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-14T20:46:21+00:00Added an answer on May 14, 2026 at 8:46 pm

    It sounds like what you want to do is to create lots of commits each time you do something separate, and then use git rebase -i to reorder and combine your commits before pushing them upstream.

    The rebase function is one of the really powerful features of Git, and it seems well suited to your mode of operation.

    Since you can change commit messages with rebase, you could add a “tag” like “COMMENT” or “UTILS” to each related commit, so you can easily identify them later when you shuffle things around with git rebase -i.

    One of the limitations of git svn dcommit may be awkward – you can only send up a “complete” set (from a Git point of view) of patches to Subversion. That is, dcommit only commits from the point you started making changes, to the HEAD. If you have commits (like your typos) that you want to keep around for some later batch commit, then you can make a temporary branch for those, using git rebase to keep it up to date.

    I have on my “list of things to do sometime” to try to make a patch for git svn dcommit that lets you choose which patches to send up to Subversion.

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

Sidebar

Related Questions

This might seem like a stupid question I admit. But I'm in a small
For some reason, after submitting a string like this Jack’s Spindle from a text
This is what I would like to do: I have assigned the following items:
This is a bit of a long shot, but if anyone can figure it
This is starting to vex me. I recently decided to clear out my FTP,
This is kinda oddball, but I was poking around with the GNU assembler today
This is a difficult and open-ended question I know, but I thought I'd throw
This is my first post here and I wanted to get some input from
This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit
This error just started popping up all over our site. Permission denied to call

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.