Emacs

Magit Tutorial - Bisect

How to use Magit in Emacs to do bisecting

3 minute read

Git rebase with Magit

It’s 5 o’clock on a sunny Friday afternoon, you are thinking where to have dinner with friends and such. The only thing you have to finish before you can go is to pull your colleage’s latest changes and make a demo build to customer. You pull, there are 20 commits all nicely structured, you are now giving yourself a pat on the back for teaching him to use rebase yesterday (by pointing him to these 2 wonderful articles 1 and 2).

Magit tutorial - Rebase (Part II)

How to use Magit in Emacs to do rebase in Git

2 minute read

Git rebase with Magit

In part I we went through how to use git rebase to modify commit history, things like reword a commit, squash multiple commits, split commit. In this part, we will talk about another common use case of rebase: rebase before merging branches. Let’s first create a new repo and add one file.txt as the first commit. apple pear peach cat dog snake Now we create a feature branch from master branch.

Magit tutorial - Rebase (Part I)

How to use Magit in Emacs to do rebase in Git

3 minute read

Git rebase with Magit

Magit is arguably the best Git tool out there and also my favorite. It is a package in Emacs, and it is text based. In this tutorial, we will explore how to use it to tackle one of the more elusive topics in Git: Rebase. In the beginning there was darkness Let’s create an empty repository and add one empty file to it. git init touch file.txt git add .