
In this video, I'll show you how you can use Magit to make your everyday Git operations far more efficient than on the command line! We'll walk through a number of real scenarios to show you how to do the following with Magit:
- Cloning repositories
- Viewing the commit history of branches
- Partial staging of modified files
- Amending, extending, and rewording commits
- Creating new branches from commits you've already made
- Pushing branches to a remote repository
- Pulling (and rebasing) commits from a remote repository
- Discarding unwanted changes
- Adding files to .gitignore
Check out the show notes here: https://systemcrafters.cc/mastering-git-with-magit/everyday-git-workflow/
Support Jonas on GitHub sponsors: https://github.com/sponsors/tarsius
We cover the following topics:
- 0:00 Intro
- 0:18 What will we learn?
- 1:04 Cloning a repository
- 5:35 Looking at the commit history
- 5:58 Viewing commits from the current branch
- 8:47 Viewing commits from a specific branch
- 10:23 Commiting only one section of a modified file
- 16:47 Adding a file or change to the most recent commit
- 21:54 Adding a file or change to a specific commit
- 25:11 Create a new branch from the changes of the current branch
- 28:59 Pushing a local branch to a remote
- 29:27 Pushing a new local branch to a remote
- 31:39 Pushing new changes to an existing branch
- 33:08 Pushing a branch that has had its commits modified
- 36:16 Saving local changes for later (stashing)
- 39:35 Pulling new commits from a remote branch into a local branch
- 41:23 Pulling new changes from another branch
- 42:26 Rebasing local changes onto the new commits
- 47:15 Fetching without pulling changes
- 48:27 Discarding unwanted changes
- 51:15 Adding a file to .gitignore
- 53:55 What's next?
My Emacs configuration: https://config.daviwil.com/emacs
My system configurations: https://config.daviwil.com/systems
If you enjoy this series, please consider becoming a sponsor on GitHub or Patreon:
- https://github.com/sponsors/daviwil
- https://patreon.com/SystemCrafters
You can also leave a tip via PayPal: https://paypal.me/daviwil
Follow me on Twitter for more GNU Emacs and GNU Guix content!
https://twitter.com/SystemCrafters
Chat with the System Crafters community on Discord and IRC: http://systemcrafters.chat
Check out my other video series!
- Emacs Essentials: https://www.youtube.com/watch?v=48JlgiBpw_I&list=PLEoMzSkcN8oPZvSdewHG8uApD7THlLLCV
- Emacs From Scratch: https://www.youtube.com/watch?v=74zOY-vgkyw&list=PLEoMzSkcN8oPH1au7H6B7bBJ4ZO7BXjSZ
- Emacs Tips: https://www.youtube.com/watch?v=wKTKmE1wLyw&list=PLEoMzSkcN8oMHJ6Xil1YdnYtlWd5hHZql
- Emacs Desktop Environment: https://www.youtube.com/watch?v=f7xB2fFk1tQ&list=PLEoMzSkcN8oNPbEMYEtswOVTvq7CVddCS
- Emacs IDE: https://www.youtube.
...
https://www.youtube.com/watch?v=qPfJoeQCIvA