git diff A...B (3 dots) (beginner - intermediate) anthony explains

  Рет қаралды 5,515

anthonywritescode

anthonywritescode

Күн бұрын

Пікірлер: 14
@bbug705076
@bbug705076 2 жыл бұрын
Great git lessons. really benefit from them
@mfeickert07
@mfeickert07 4 жыл бұрын
Thank you! I've known for years that there was a difference, but had never gotten around to looking up exactly what it was. This was super well explained too.
@npscole
@npscole 4 жыл бұрын
These are great videos. Thank you for your output.
@bhaveshverma8629
@bhaveshverma8629 2 жыл бұрын
This is very useful. Thank you
@Deepeshp656
@Deepeshp656 4 жыл бұрын
Git diff master...feature give no merge base error when i try to use it in github action
@anthonywritescode
@anthonywritescode 4 жыл бұрын
it github actions the default cloning strategy is shallow, so it does not have enough history to find a merge base between the two. if you use `fetch-depth: 0` (which is a deep clone) it will have enough commit history to find a common parent
@خيريخالد-غ2ث
@خيريخالد-غ2ث 4 жыл бұрын
I hope you are well I have two questions if you can help me about git difference 1) I have two files to difference them, each file has about 960 lines. In case I want to make difference between them but the differences start from line 150 until the end of the files. How can do that using git diff & git difftool ? 2) How can do the auto difference between files then send an automatic email for these differences?
@anthonywritescode
@anthonywritescode 4 жыл бұрын
for (1) are you asking how to only show differences after line 150? I don't think `diff` has a thing for that but you might be able to slice the file and only compare the parts you care about? for (2) you'd probably build some sort of system (cron?) that runs a task which checks that diff and emails
@giovannipcarvalho
@giovannipcarvalho 2 жыл бұрын
hopefully rebase will start supporting triple-dot soon I like to squash/cleanup my commit messages before publishing my branches on the remote. I have to use merge-base before rebasing interactively if I just want to edit my commits without integrating changes that happend after I branched, which usually is the case.
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I just use `git rebase -i $committoedit^` which work well enough for me!
@giovannipcarvalho
@giovannipcarvalho 2 жыл бұрын
@@anthonywritescode yeah that’s fine too, but I have a function to do it without having to look up which commit is the merge base! :D
@anthonywritescode
@anthonywritescode 2 жыл бұрын
nah I don't look up the merge base -- just the commit I want to change
@giovannipcarvalho
@giovannipcarvalho 2 жыл бұрын
@@anthonywritescode oh, I do this when I’m ready to get reviewed and want to squash dozens of commits into a single one before pushing my branch to the remote!
@bhaveshverma8629
@bhaveshverma8629 3 жыл бұрын
Awesome
faster than git clone! (beginner - intermediate) anthony explains #130
7:56
git is just a key value store? (advanced) anthony explains #497
15:45
anthonywritescode
Рет қаралды 6 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
partial git commits (intermediate) anthony explains #499
6:20
anthonywritescode
Рет қаралды 4,2 М.
git fetch (--prune) (beginner - intermediate) anthony explains #092
9:03
what are git submodules? (intermediate) anthony explains #273
11:07
anthonywritescode
Рет қаралды 7 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 137 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,3 МЛН
Git, GitHub, & GitHub Desktop for beginners
22:16
Coder Coder
Рет қаралды 818 М.
what is a git tag? (beginner - intermediate) anthony explains #144
5:57
anthonywritescode
Рет қаралды 23 М.
oops I'm the pyuwsgi maintainer now (intermediate) anthony explains #579
22:55
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН