Diffing between two entire directories/projects in hg or git?

前端 未结 8 606
谎友^
谎友^ 2020-12-02 12:05

I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I\'m trying to compare all the changes I made in the original directory,

8条回答
  •  -上瘾入骨i
    2020-12-02 12:38

    There Are Following Another Ways For Diffing between two entire directories/projects.

    1. In Git There is Syntax:

    Syntax: git-diff [] [--] […​] This form is to view the changes you made relative to the index (staging area for the next commit). In other words, the differences are what you could tell Git to further add to the index but you still haven’t.

    Here is the. URL: https://git-scm.com/docs/git-diff

    git diff --no-index directory 1 project /path directory 2 project/path >> File name

    1. Using Linux Command diff --brief --recursive dir1path/ dir2Path/

    2. If you are using windows there is an application WinMerge.

提交回复
热议问题