Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Bazaar equivalent to `git commit --amend`?

Tags:

bazaar

I'm playing around with Launchpad projects using Bazaar and getting along fairly well. However, coming from a Git background I'm really missing the ability to roll changes into the last commit---this happens frequently when I discover a small, stupid typo that really doesn't deserve its own commit or entry in a debian/changelog file.

Does Bazaar provide a command that serves the same purpose as git commit --amend?

like image 923
Sharpie Avatar asked Mar 16 '12 01:03

Sharpie


People also ask

Can you amend commits in git?

The git commit --amend command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit. It can also be used to simply edit the previous commit message without changing its snapshot.

How do I amend an existing commit?

You can modify the most recent commit in the same branch by running git commit --amend. This command is convenient for adding new or updated files to the previous commit. It is also a simple way to edit or add comments to the previous commit. Use git commit --amend to modify the most recent commit.

How do I amend a commit in Visual Studio?

Visual Studio Team Explorer In the Changes view of Team Explorer, stage one or more files, enter a commit message, and then choose Actions > Amend Previous Commit.


1 Answers

bzr uncommit + bzr commit but it does not populate your editor with old commit message. If you can use bzr-gtk or QBzr then use bzr uncommit + bzr gcommit (or bzr qcommit). The GUI commit dialogs are able to populate commit editor with old commit message.

like image 84
bialix Avatar answered Oct 20 '22 03:10

bialix