1) Add any remote repositories you want to compare:
git remote add foobar git://github.com/user/foobar.git
2) Update your local copy of a remote:
git fetch foobar
Fetch won’t change your working copy.
3) Compare any branch from your local repository to any remote you’ve added:
git diff master foobar/master
More Related Contents:
- Multiple GitHub accounts on the same computer?
- How can I delete all Git branches which have been merged?
- Download single files from GitHub
- Git Init in home directory – now unable to commit changes
- Preferred Github workflow for updating a pull request after code review
- git gc –aggressive vs git repack
- Trying To Understand/Determine A Basic Git Workflow
- How to update a pull request from forked repo?
- Git push: “fatal ‘origin’ does not appear to be a git repository – fatal Could not read from remote repository.”
- Why is “origin/HEAD” shown when running “git branch -r”?
- Git rebase – commit select in fork-point mode
- How do you fork your own repository on GitHub?
- Adding a collaborator to my free GitHub account?
- Git branch name – case sensitive or insensitive?
- How to sync changes on my local server with the ones on the remote one without commiting?
- “Cannot spawn ssh” when connecting to Github, but ssh -T [email protected] works?
- Push and pull my conda environment using git
- Git: How to make outer repository and embedded repository work as common/standalone repository?
- Clone only the .git directory of a git repo
- Why does ‘git commit’ not save my changes?
- How do I discard unstaged changes in Git?
- GitHub clone from pull request?
- Git: How to remove file from index without deleting files from any repository
- Why does “git push main” work on GitHub when “git push master” does not? Also what is difference between “Main branch” and “Master branch”?
- Create a GitHub repository from command line
- How to remove big (>100MB) file from a GitHub repository and push successfully?
- What is “git remote add …” and “git push origin master”?
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- Git: Ignore files for public repository, but not for private
- npm install package from github repo subfolder