Тёмный
No video :(

git: --first-parent (intermediate) anthony explains  

anthonywritescode
Подписаться 40 тыс.
Просмотров 3,2 тыс.
50% 1

today we talk about a helpful argument in `git` for visualizing histories (and diffs!)
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Опубликовано:

 

12 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@ankushmenat
@ankushmenat 10 месяцев назад
That thumbnail
@pierredonias8940
@pierredonias8940 10 месяцев назад
I somehow find it a bit weird that when you do `git log --first-parent`, it shows you what you did on the primary branch but when you do `git show --first-parent`, it shows you what you did on the secondary branch. I understand that it's because it diffs the merge commit against the previous commit on the primary branch but it's a bit unintuitive imho.
@anthonywritescode
@anthonywritescode 10 месяцев назад
yeah the way I think about it is it's the difference between the commit and the previous mainline commit
@mrswats
@mrswats 10 месяцев назад
The merge commits are the reason why I usually go for squash and ff merges instead of "regular" merges but this is so useful!!
@djchainz
@djchainz 9 месяцев назад
Thanks for sharing! I didn’t know it worked on `git show` and it seems to be conspicuously missing from the docs.
@preocts4086
@preocts4086 9 месяцев назад
Between using delta over less for the git pager, a better understanding of fetch, and now how to use --first-parent my git knowledge has got good in the last week. Thanks for this!
@alexismandelias
@alexismandelias 10 месяцев назад
I use the git show command with the -p/--patch and --stat arguments to show difff and files changed. I dont think I've ever used it on a merge commit (so I dont know what the output would be), however you can use git show ^N for the N different parents of the merge commit
@skarfie123
@skarfie123 10 месяцев назад
We use squash commits and it really cleans up the git log
@vaasudevan
@vaasudevan 10 месяцев назад
Hello, Anthony! I've been binge-watching your "Anthony Explains" playlist, and it's been incredibly informative. I've have an idea for a video that could be of great value to a wider audience. How about creating a long video that guides viewers through the process of building a sample toy project (CL application / python package) from the ground up, emphasizing best practices, using venv, type hints, implementing linting, type checking, testing, showcasing the steps to add it to GitHub, setting up a GitHub action (for automated testing / something else), incorporating pre-commit, publishing to pypi etc.,
@anthonywritescode
@anthonywritescode 10 месяцев назад
there's a few that already dive into this! (the first episode for instance, plus there's ones on setting up mypy, pytest, and all the tools I use as well)
@Spitfire5592
@Spitfire5592 10 месяцев назад
Real TIL is git show 😮
Далее
Git Tutorial For Dummies
19:25
Просмотров 1 млн
How to be a git expert
46:26
Просмотров 153 тыс.
Git PULL vs FETCH
7:13
Просмотров 14 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,1 млн