David Rohweder
David Rohweder

Reputation: 73

How to compare and update local repo with remote Github repo?

I was wondering if there are any API's or tricks to find out if my program (visual basic) is different from the one on my repositories master branch.

Also, if it is not, how would I go about updating mine from the new one in the master branch?

Upvotes: 1

Views: 3172

Answers (2)

Alex Benincasa Santos
Alex Benincasa Santos

Reputation: 860

If you're unsure your local project is updated use this command:

git pull origin master

To see differences between your local and remote projects use this:

git diff <local branch> <remote>/<remote branch>

You can find more on git documentation

Upvotes: 1

dch
dch

Reputation: 243

git diff is the git tool to let you see changes between commits, branches, and the like. git pull is the git tool to fetch a repository and merge the latest changes.

These tools should have manpages under git-diff(1) and git-pull(1) respectively.

Upvotes: 0

Related Questions