getsolus / getsolus/help-center-docs

Additions to git tips & tricks - splitting a commit during rebase -i

Open
#571 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
59
Forks
93
Avg merge
7h 38m
Merged PRs (30d)
11

Description

git rebase -i origin/HEAD --autostash
find the needed commit and change pick to e (short for edit)
save and exit
Then git reset HEAD~
If you run git status you can see the changes are unstaged
Then gotopkg sckit-image and git add and git commit as normal, then do the same for the second split
Tthen git rebase --continue and git push --force-with-lease

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing Git tips and tricks page in the help-center documentation, since this issue does not name a file. Compare the proposed interactive-rebase, reset, split-commit, continue, and push steps with the page, then add the procedure and verify the rendered documentation and command wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.