5 Terrific Git Commit Tips

preview_player
Показать описание
Committing code is the fundamental action of git, so it makes sense that there are so many ways to do it. We'll look at 5 built-in tools for easier commits in this video!

Рекомендации по теме
Комментарии
Автор

There are some channels that are just great at getting the point across in a very layman and efficient manner. Your channel is very high on that list. You should be incredibly proud of yourself for the impact your content has on many who don’t voice their appreciation, subsequently I hope this speaks for them also. Thank you! Keep doing what you’re doing, it doesn’t go unnoticed!

hyperprotagonist
Автор

haha, I love it... first words in the video... Terrific Tip #1 --- no bs, right to the point.

pupfriend
Автор

Your channel has been fantastic. I've enjoyed, and learned a lot, from several of your videos. Thanks!

mveronie
Автор

Tip 3, 4 and 5 should come with a big warning: be very careful when you rewrite the branch's history if it's already been pushed to the remote branch. If you work alone on the branch it's fine (you'll have to force push), but if multiple people work on the same branch, it's a recipe for disaster. I do like to use those functionalities before pushing to remote.

I would add a Tip 0: use a TUI like lazygit. It has all the advantages of the command line: can be used on linux, windows, mac, wsl, over SSH and inside a container, keyboard-based (but the mouse also works), plus the add visual aspect. It also simplifies some things like interactive rebase, but respects the git way of doing things (unlike some IDEs git integrations which don't use git vocabulary). Bonus: you don't have to open it in a different window, with VSCode you can open a "New Terminal in Editor Area" and pin it so it's always easily accessible, and I assigned a "multiple command" keyboard shortcut that does it in one simple step.

ghislainthau
Автор

Wow! That's a very practical intro to interactive rebase, thank you very much

ivanmoren
Автор

Great video, thanks for sharing 🙂

I loved your Git log formatting.
Do you have your dotfiles available publickly?

kleinms
Автор

Your channel has become one of my favorite channels in the wold. keep up the great job @Andrew Burgess

andredealbuquerque
Автор

fantastic video Andrew, I wish a lot of people would spend a little more time in improving their workflow

hugodsa
Автор

Love the tips, but most of that I prefer to do in VSCode (so much easier to stage line by line).

noriller
Автор

Patch-add is a great little feature, but i just wish it was a little bit... more functional? Sometimes it would try to stage massive chunks without being able to split them properly, and that's exactly where I like using line-by-line staging features of vscode or intellij

dinckelman
Автор

I did know about --amend, but not about --no-edit. Very useful. I was also looking for -p since that's a feature I really linked in atom, but find very clunky to use in vscodium.

Mitsunee_
Автор

I use "git commit --amend --no-edit" A LOT

hugodsa
Автор

Great content! +1 like, +1 subscriber!

zindev
Автор

Vim plugin: gitcommitia is an replacement for git commit -v

reverseila