9 Techniques to Boost Your Git Workflow with Magit

Опубликовано: 14 Июль 2021
на канале: System Crafters
20,305
529

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.net/mastering-...

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
  / 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!
  / systemcrafters  

Chat with the System Crafters community on Discord and IRC: http://systemcrafters.chat

Check out my other video series!

Emacs Essentials:    • The Absolute Beginner's Guide to Emacs  
Emacs From Scratch:    • Emacs From Scratch #1 - Getting Start...  
Emacs Tips:    • Emacs Tips - How to Show Reminders fo...  
Emacs Desktop Environment:    • Emacs Desktop Environment #1 - Gettin...  
Emacs IDE:    • Emacs From Scratch #8 - Build Your Ow...  
Emacs Mail:    • Streamline Your E-mail Management wit...  
Learning Emacs Lisp:    • Introduction to Emacs Lisp - Learning...  
Craft Your System with GNU Guix:    • An Introduction to GNU Guix  

Music credits:

Coriolis Effect by logos feat. stefsax, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/mseq/26296
reNovation by airtone, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/airtone/60674
ukeSounds by airtone, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/airtone/32655
Between Worlds (Instrumental) by Aussens@iter, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/tobias_webe...