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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:16:35+00:00 2026-05-12T08:16:35+00:00

My git commits are a bit messed up and I was wondering if I

  • 0

My git commits are a bit messed up and I was wondering if I could squash them all together and then “extract” some commits from that commit.

Let’s say I have these files in one commit:
upload.py,
moderate.py,
upload.html,
moderaion.html

How can I split it in two commits like this?
upload:
upload.py,
upload.html

moderation:
moderate.py,
moderaion.html

  • 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-12T08:16:36+00:00Added an answer on May 12, 2026 at 8:16 am

    You question implies that the commits are already messy, but if the commits themselves are ‘atomic’ but just in the wrong order, you can also use git rebase –interactive to put them in the right order and then squash them. This might make things more easy for you.

    If the commits already touch several areas and you want to split them up, again, git rebase -i can help. Also have a look at the example at Bart’s blog.

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

Sidebar

Related Questions

git-cherry lets me find all the commits missing from upstream. How do I find
I am using git-svn (from cygwin) and I've done several git commits on my
I just squashed some commits with git rebase and did a git push --force
I simply want to edit some commits with git rebase -i HEAD~2 inside the
I'm reporting a series of commits from git to cvs with cvsexportcommit. I've found
I want to compose application build version that is automatically derived from the Git
Some Background I have been using Git for a while now. The projects that
I've been using git for some time now and understand how commits work, tags,
I created a patch from three commits using git format-patch <revision_three_commits_ago> This creates three
I'd like to get the number of commits of my Git repository, a bit

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.