Loading tutorials
git add, git commit, git branch, git log and git status. You should be comfortable on the command line and know what a remote branch is. Nothing here changes your repository. It builds the mental model that the later chapters on git rebase -i rely on.3 min readgit add, git commit, git branch, git log and git status, and that you know what a remote branch is. It explains the one idea that makes every later rebase command predictable: Git never edits a commit. It makes new ones.3 min readgit log, and that you know how to save and close your text editor. You have already started git rebase -i. Now you need to read the file it opens.3 min readgit rebase -i, read the todo list, and use git add, git commit and git status without help. It covers the two todo commands that change a single commit: reword and edit.2 min readgit add, git commit, git log and git status. It also assumes you know how to start git rebase -i and edit its todo list. Both commands below combine a commit with the one above it in the list. They differ only in what happens to the commit message.3 min readgit rebase -i, know pick, and have a feature branch with several local commits that you have not pushed. Reordering and dropping both work by editing the todo list. You change the lines, save, and Git replays the commits in the new arrangement2 min readgit add, git status and git commit.3 min readgit rebase -i, read its todo list, and use edit to stop on a commit. Those topics are covered in earlier chapte3 min readgit rebase -i, read the todo list, and know what fixup does. You should also be comfortable with git commit, git log, and remote branches such as origin/main.3 min readgit rebase -i, you know what a remote branch is, and you have used git push and git fetch.3 min read--exec checks every commit in a cleaned series. --onto moves a range of commits to a new base.2 min read