Geo
Geo

Reputation: 96807

How can I do this comparison in git?

Imagine this structure ( on master and dev_branch ):

a/
  b/
  c/

I run a script, and it generates this ( dev_branch ):

a/
  b/
  c/
    file1
    ...
    fileN

I add everything, and I commit it ( dev_branch ).Now, on master, I rewrote the file generating script, I ran it, and I commited it's results. How can I make sure the generated files from master contain the same content as the generated files from branch? How can I perform this check?

Upvotes: 0

Views: 46

Answers (1)

Paweł Obrok
Paweł Obrok

Reputation: 23164

You can compare two branches with:

git diff branch1 branch2

Or compare working tree with a branch with:

git diff branch

Upvotes: 2

Related Questions