How to compare two remote branches using git

I can’t believe it took me so long to find the answer to this question. Hopefully this will help others out.

git diff --name-only origin/release-candidate origin/master

Before I deploy my newest code to production I want to double check that the files that I think I’m pushing out are the ones I’m actually pushing out. This gives me a list of files that have changed, and if I see some that I’m not expecting in that list, I know something went wrong with a merge somewhere.

gratuitous blender image

you.wolstat.com

Subdomains and e-mail addresses are for lease. You could have a website up at 'you.wolstat.com' and/or even receive email to 'you@wolstat.com'. Contact me for details.


Valid XHTML 1.0!

Valid CSS!

Activity

No comments, leave your comment or trackback.

Leave a Reply


Search

The archives run deep. Feel free to search older content using topic keywords.

Browse by Category