ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch |
| Last Crawled | 2026-04-08 22:56:16 (1 day ago) |
| First Indexed | 2020-04-01 12:03:02 (6 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Moving a Commit to a Different Branch | Tower Help |
| Meta Description | In this episode, we're going to move a commit from one branch to another existing branch with the help of the Tower Git client. |
| Meta Canonical | null |
| Boilerpipe Text | Transcript
Moving a Commit to a Different Branch
In this episode, we’re going to move a commit from one branch to another existing branch. The problem we’re solving here is very common: you make a commit and quickly realize that you were on the wrong branch. You should have made the commit on a different branch, most likely a feature branch.
Let’s look at a practical scenario. This “Newsletter signup page” commit seems like it should have been made on its corresponding feature branch. The first step in order to move this commit over is to check out the correct branch, in this case “feature/newsletter”.
Then we can select master and cherry-pick that commit - simply by dragging the commit and dropping it onto the feature branch in the sidebar.
So we now have that commit also in our feature branch, where it actually belonged in the first place.
Finally, we need to clean up our master branch: a double-click to check it out, and then we can use reset to remove that unwanted commit from the history in this branch.
Voila: master does not contain this commit anymore, but "feature/newsletter" does - just as it should be! |
| Markdown | [Tower](https://www.git-tower.com/)
[Navigation](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- [Features](https://www.git-tower.com/features)
- [Undo Anything Just press Cmd+Z](https://www.git-tower.com/features/undo)
- [Drag and Drop Make the complex effortless](https://www.git-tower.com/features/drag-and-drop)
- [Integrations Use your favorite tools](https://www.git-tower.com/features/integrations)
- [Tower Workflows Branching Configurations](https://www.git-tower.com/features/workflows)
- [Stacked Pull Requests Supercharged workflows](https://www.git-tower.com/features/stacked-prs)
- [All Features](https://www.git-tower.com/features/all-features)
- [Release Notes](https://www.git-tower.com/release-notes)
- [Pricing](https://www.git-tower.com/pricing)
- [Support](https://www.git-tower.com/support)
- [Documentation](https://www.git-tower.com/help)
- [Contact Us](https://www.git-tower.com/support/contact)
- [Account Login](https://account.git-tower.com/)
- [Learn Git](https://www.git-tower.com/learn)
- [Video Course 24 episodes](https://www.git-tower.com/learn/git/videos)
- [Online Book From novice to master](https://www.git-tower.com/learn/git/ebook)
- [Cheat Sheets For quick lookup](https://www.git-tower.com/learn/cheat-sheets)
- [Webinar Learn from a Git professional](https://www.git-tower.com/learn/git/webinar)
- [First Aid Kit Recover from mistakes](https://www.git-tower.com/learn/git/first-aid-kit)
- [Advanced Git Kit Dive deeper](https://www.git-tower.com/learn/git/advanced-git-kit)
- [Blog](https://www.git-tower.com/blog)
- [Download](https://www.git-tower.com/download/mac) [Download](https://www.git-tower.com/download/windows)
[Contents](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
[Videos](https://www.git-tower.com/help/videos)[Surviving with Git](https://www.git-tower.com/help/videos/surviving-with-git)[Moving a Commit to a Different Branch](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- Videos
- [Getting Started with Tower](https://www.git-tower.com/help/videos/getting-started-with-tower)
- [Learning Git with Tower](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- [What is Version Control?](https://www.git-tower.com/help/videos/learning-git-with-tower/what-is-vc)
- [Installing and Configuring Git](https://www.git-tower.com/help/videos/learning-git-with-tower/installing-configuring-git)
- [A Basic Workflow of Version Control](https://www.git-tower.com/help/videos/learning-git-with-tower/basic-workflow)
- [Creating a New Local Repository](https://www.git-tower.com/help/videos/learning-git-with-tower/creating-new-repo)
- [Cloning an Existing Repository](https://www.git-tower.com/help/videos/learning-git-with-tower/cloning-from-remote)
- [Inspecting Local Changes](https://www.git-tower.com/help/videos/learning-git-with-tower/inspecting-changes)
- [Staging & Committing Changes](https://www.git-tower.com/help/videos/learning-git-with-tower/staging-committing)
- [Commit History](https://www.git-tower.com/help/videos/learning-git-with-tower/commit-history)
- [Ignoring Files](https://www.git-tower.com/help/videos/learning-git-with-tower/ignoring-files)
- [An Introduction to Branches](https://www.git-tower.com/help/videos/learning-git-with-tower/introduction-branches)
- [Creating & Checking Out Branches](https://www.git-tower.com/help/videos/learning-git-with-tower/creating-branches)
- [Merging Branches](https://www.git-tower.com/help/videos/learning-git-with-tower/merging-branches)
- [Stashing Changes](https://www.git-tower.com/help/videos/learning-git-with-tower/stashing)
- [Dealing with Merge Conflicts](https://www.git-tower.com/help/videos/learning-git-with-tower/merge-conflicts)
- [Undoing Things](https://www.git-tower.com/help/videos/learning-git-with-tower/undoing-things)
- [Tags](https://www.git-tower.com/help/videos/learning-git-with-tower/tags)
- [Introduction to Remote Repositories](https://www.git-tower.com/help/videos/learning-git-with-tower/introduction-remotes)
- [Connecting a Remote Repository](https://www.git-tower.com/help/videos/learning-git-with-tower/connecting-remote)
- [Sharing Data on a Remote Repository](https://www.git-tower.com/help/videos/learning-git-with-tower/sharing-data)
- [Publishing a Local Repository on Remote](https://www.git-tower.com/help/videos/learning-git-with-tower/publishing-repo)
- [Pushing Changes to a Remote](https://www.git-tower.com/help/videos/learning-git-with-tower/pushing-changes)
- [Pulling & Fetching Changes](https://www.git-tower.com/help/videos/learning-git-with-tower/pulling-fetching)
- [Rebase as an Alternative to Merge](https://www.git-tower.com/help/videos/learning-git-with-tower/rebasing)
- [Branching Workflows](https://www.git-tower.com/help/videos/learning-git-with-tower/branching-workflows)
- [More Productive in Git with Tower](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- [Drag and Drop](https://www.git-tower.com/help/videos/more-productive-in-git/drag-and-drop)
- [Quick Open](https://www.git-tower.com/help/videos/more-productive-in-git/quick-open)
- [Quick Actions](https://www.git-tower.com/help/videos/more-productive-in-git/quick-actions)
- [Commit Details](https://www.git-tower.com/help/videos/more-productive-in-git/commit-details)
- [Chunk & Line Staging](https://www.git-tower.com/help/videos/more-productive-in-git/chunk-line-staging)
- [Interactive Rebase](https://www.git-tower.com/help/videos/more-productive-in-git/interactive-rebase)
- [Reflog](https://www.git-tower.com/help/videos/more-productive-in-git/reflog)
- [Undoing Things](https://www.git-tower.com/help/videos/more-productive-in-git/undoing-things)
- [Image Diffing](https://www.git-tower.com/help/videos/more-productive-in-git/image-diffing)
- [User Profiles](https://www.git-tower.com/help/videos/more-productive-in-git/user-profiles)
- [Keyboard Shortcuts](https://www.git-tower.com/help/videos/more-productive-in-git/keyboard-shortcuts)
- [Search](https://www.git-tower.com/help/videos/more-productive-in-git/search-repo)
- [Search GitHub](https://www.git-tower.com/help/videos/more-productive-in-git/search-github)
- [One-Click Cloning](https://www.git-tower.com/help/videos/more-productive-in-git/one-click-cloning)
- [File History](https://www.git-tower.com/help/videos/more-productive-in-git/file-history)
- [Navigation](https://www.git-tower.com/help/videos/more-productive-in-git/navigation)
- [Submodules](https://www.git-tower.com/help/videos/more-productive-in-git/submodules)
- [Pull Requests](https://www.git-tower.com/help/videos/more-productive-in-git/pull-requests)
- [Surviving with Git](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- [Discarding All Local Changes in a File](https://www.git-tower.com/help/videos/surviving-with-git/discarding-changes-file)
- [Restoring a Deleted File](https://www.git-tower.com/help/videos/surviving-with-git/restoring-deleted-file)
- [Discarding Chunks / Lines in a File](https://www.git-tower.com/help/videos/surviving-with-git/discarding-chunks-lines)
- [Discarding All Local Changes](https://www.git-tower.com/help/videos/surviving-with-git/discarding-all-local-changes)
- [Fixing the Last Commit](https://www.git-tower.com/help/videos/surviving-with-git/fixing-last-commit)
- [Reverting a Commit in the Middle](https://www.git-tower.com/help/videos/surviving-with-git/reverting-commit)
- [Resetting to an Old Revision](https://www.git-tower.com/help/videos/surviving-with-git/resetting-project)
- [Resetting a File to an Old Revision](https://www.git-tower.com/help/videos/surviving-with-git/resetting-file)
- [Recovering Deleted Commits](https://www.git-tower.com/help/videos/surviving-with-git/recovering-commit)
- [Recovering a Deleted Branch](https://www.git-tower.com/help/videos/surviving-with-git/recovering-branch)
- [Moving a Commit to a New Branch](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-new-branch)
- [Moving a Commit to a Different Branch](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
- [Editing Old Commit Messages](https://www.git-tower.com/help/videos/surviving-with-git/editing-commit-message)
- [Deleting Old Commits](https://www.git-tower.com/help/videos/surviving-with-git/deleting-commit)
- [Squashing Multiple Commits into One](https://www.git-tower.com/help/videos/surviving-with-git/squashing-commits)
- [Adding a Change to an Old Commit](https://www.git-tower.com/help/videos/surviving-with-git/adding-change-old-commit)
- [Splitting / Editing an Old Commit](https://www.git-tower.com/help/videos/surviving-with-git/splitting-old-commit)
2 min episode 12 of 17
Transcript
Moving a Commit to a Different Branch
In this episode, we’re going to move a commit from one branch to another existing branch. The problem we’re solving here is very common: you make a commit and quickly realize that you were on the wrong branch. You should have made the commit on a different branch, most likely a feature branch.
Let’s look at a practical scenario. This “Newsletter signup page” commit seems like it should have been made on its corresponding feature branch. The first step in order to move this commit over is to check out the correct branch, in this case “feature/newsletter”.
Then we can select master and cherry-pick that commit - simply by dragging the commit and dropping it onto the feature branch in the sidebar.
So we now have that commit also in our feature branch, where it actually belonged in the first place.
Finally, we need to clean up our master branch: a double-click to check it out, and then we can use reset to remove that unwanted commit from the history in this branch.
Voila: master does not contain this commit anymore, but "feature/newsletter" does - just as it should be\!
[Previous Video « Moving a Commit to a New Branch](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-new-branch)
[Next Video Editing Old Commit Messages »](https://www.git-tower.com/help/videos/surviving-with-git/editing-commit-message)
##### Tower
- [Homepage](https://www.git-tower.com/)
- [Releases](https://www.git-tower.com/release-notes)
- [Download for macOS](https://www.git-tower.com/download/mac)
- [Download for Windows](https://www.git-tower.com/download/windows)
##### Support
- [Guides](https://www.git-tower.com/help/guides)
- [Videos](https://www.git-tower.com/help/videos)
- [Webinars](https://www.git-tower.com/help/webinars)
- [Contact Us](https://www.git-tower.com/support)
##### Company
- [About](https://www.git-tower.com/company/about)
- [Blog](https://www.git-tower.com/blog)
- [Press](https://www.git-tower.com/company/press)
- [Jobs](https://www.git-tower.com/company/jobs)
- [Merch](https://stuff.git-tower.com/)
[Imprint / Legal Notice](https://www.git-tower.com/legal/imprint) \| [Privacy Policy](https://www.git-tower.com/legal/privacy-policy) \| [Privacy Settings]()
© 2010-2026 [Tower](https://www.git-tower.com/) - Mentioned product names and logos are property of their respective owners.
## Your trial is downloading…
Try Tower "Pro" for 30 days without limitations\!
 Tower
Close
## Updates, Courses & Content via Email
## Thank you for subscribing
Please check your email to confirm
Close
## Want to win one of our awesome Tower shirts? **Tell your friends about Tower\!**
[Share on Twitter](https://www.git-tower.com/help/videos/surviving-with-git/moving-commit-different-branch)
We'll pick 4 winners every month who share this tweet\!
Follow [@gittower](https://x.com/gittower) to be notified if you win\!
## Try Tower for Free
Sign up below and use Tower "Pro" for 30 days without limitations\!
Close |
| Readable Markdown | Transcript
Moving a Commit to a Different Branch
In this episode, we’re going to move a commit from one branch to another existing branch. The problem we’re solving here is very common: you make a commit and quickly realize that you were on the wrong branch. You should have made the commit on a different branch, most likely a feature branch.
Let’s look at a practical scenario. This “Newsletter signup page” commit seems like it should have been made on its corresponding feature branch. The first step in order to move this commit over is to check out the correct branch, in this case “feature/newsletter”.
Then we can select master and cherry-pick that commit - simply by dragging the commit and dropping it onto the feature branch in the sidebar.
So we now have that commit also in our feature branch, where it actually belonged in the first place.
Finally, we need to clean up our master branch: a double-click to check it out, and then we can use reset to remove that unwanted commit from the history in this branch.
Voila: master does not contain this commit anymore, but "feature/newsletter" does - just as it should be\! |
| Shard | 63 (laksa) |
| Root Hash | 2236478454510524063 |
| Unparsed URL | com,git-tower!www,/help/videos/surviving-with-git/moving-commit-different-branch s443 |