Search code examples
gitgithubgit-diff

Git unable to access diff


I'm trying to make a diff but using

git diff KDE/krita  mrmajik45/krita

Says that it can't access KDE/krita. Please help.

( not a git repository (or any of the parent directories): .git) for Eft. (error: Could not access 'KDE/krita') I'm trying to compare my fork to Master.


Solution

  • The way to compare your own fork master branch to the original ("upstream") repository is:

    git clone https://github.com/mrmajik45/krita
    cd krita
    git remote add upstream https://github.com/KDE/krita
    git fetch upstream
    

    Then you can do, still in the krita folder; a diff between your local an remote upstream-repo branch:

    git diff master upstream/master