Ry’s Git Tutorial by Ryan Hodson

Ry’s Git Tutorial by Ryan Hodson

Author:Ryan Hodson
Language: eng
Format: epub
Tags: Computer Software
ISBN: 9780985072315
Publisher: RyPress
Published: 2012-12-23T00:00:00+00:00


Merge in the Revived Branch

We’ve revived our lost commit, and now we’re ready to merge everything back into the master branch. Before we do the merge, let’s see exactly what we’re merging:

git checkout master git log HEAD..green-page --stat

The git log HEAD..green-page command shows us only those commits in green-page that aren’t in master (since master is the current branch, we can refer to it as HEAD). The new --stat flag includes information about which files have been changed in each commit. For example, the most recent commit tells us that 14 lines were added to the green.html file and 3 lines were added to index.html:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.