System Crafters: Magit 2

David Wilson over at the System Crafters YouTube channel has his second video on Magit up. Irreal looked at the first video a couple of weeks ago. In the current video, Wilson considers some of the intermediate Magit functions.

He starts off with showing how to clone a repository with Magit. That turns out to be pretty easy, especially if you’re cloning a GitHub or GitLab repository. Next, there’s a short introduction to using the log to get a history of commits. From there, Wilson moves on to the meat of the video.

He shows how to stage hunks of a file, how to stash changes so that a branch can be updated, and how to reapply the stashed changes. For me, the handiest information is on how to change previous commits. That’s easy for the last commit but even for an older commit it’s possible to make changes without doing the rebase dance. That’s something I didn’t know so I found it particularly useful.

He moves on to cover pushing and pulling to and from the upstream repository, including how to force push a modified commit that’s already been pushed to the remote repository. Finally he shows how to delete changes—or complete files—from Magit. That’s really handy if you want to discard a set of changes. He also shows how to add a file to one of the .gitignore files.

This is a really good introduction on how to actually use Magit in your workflow. I’m looking forward to the next one. The video is fairly long—56 minutes, 38 seconds—but worth your time if you want to integrate Magit into your daily workflow.

This entry was posted in General and tagged , . Bookmark the permalink.