Skip to content

chrisb13/gitreadinggroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

gitreadinggroup

Motivation

We had some super messy history to clean up!

.. and ...

The following is from Julia Evans' great website

Here are two commands:

git log main..test git log main...test What’s the difference between .. and ...? I never use these so I had to look it up in man git-range-diff. It seems like the answer is that in this case:

A - B main
C - D test

main..test is commits C and D test..main is commit B main...test is commits B, C, and D But it gets worse: apparently git diff also supports .. and ..., but they do something completely different than they do with git log? I think the summary is:

git log test..main shows changes on main that aren’t on test, whereas git log test...main shows changes on both sides. git diff test..main shows test changes and main changes (it diffs B and D) whereas git diff test...main diffs A and D (it only shows you the diff on one side).

DolphinDream's picture

Source: https://stackoverflow.com/a/46345364 or https://i.sstatic.net/4wMJI.png Alt text

Matthew Brett's ideas

Stackoverflow

On git diff

On git log

Github

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors