V
V
Voenniy2012-07-12 13:41:02
git
Voenniy, 2012-07-12 13:41:02

Diff between local and remote git repository?

I have 2 questions, but they are a bit related.
1. Is it possible to know the difference between local and remote repository? In other words, it is necessary, before the git pull command, to find out what exactly will be updated now (meaning, not which files will be updated, but which new commits will come).
2. After git pull it shows what has been updated: Updating f7965fe..4a04f2d
How to get this information in the post-merge hook? Maybe there is an opportunity to find out what exactly was updated during the last update?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@sledopit, 2012-07-12
@Voenniy

1. stackoverflow.com/questions/231211/using-git-how-do-i-find-modified-files-between-local-and-remote
2: you can see the logs. The link also says this.

D
denver, 2012-07-12
@denver

git config --global alias.in '!git remote update -p; git log [email protected]{u}'
git config --global alias.out 'log @{u}..'
will be git in (what will come), git out (what will push)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question