Using Magit
Basics
Key |
Meaning |
|---|---|
|
open Magit interface |
|
abort current operation |
|
stage file |
|
commit staged changes |
|
finish editing commit message |
|
push to origin |
|
pull from origin |
|
fetch from origin |
Create a New Branch
Key |
Meaning |
|---|---|
|
create a new branch at current branch |
|
push to origin |
Synchronize Current Branch with Origin
Key |
Meaning |
|---|---|
|
add remote “upstream” |
|
fetch changes from all sites |
|
rebase onto upstream branch |
|
force-push to origin |
Squash Commits
Key |
Meaning |
|---|---|
|
interactive rebase |
|
the commit to keep |
|
the commits to drop |
|
force-push to origin |