July 2018
Intermediate to advanced
354 pages
10h 57m
English
The git am command applies the patches in the files specified and records the commits in the repository. However, if you only want to apply the patch to the working tree or the staging area and not record a commit, you can use the git apply command.
We can try to apply the patch from the master branch to the develop branch once again; we just need to reset the develop branch first:
$ git checkout develop
Switched to branch 'develop'
Your branch is ahead of 'origin/develop' by 1 commit.
(use "git push" to publish your local commits)
$ git reset --hard origin/develop
HEAD is now at c131c8b Adds functionality to prime-test a range of numbers
$ git apply latest-commit/0001-Calculate-pi-with-more-digits.patch
We can check the ...
Read now
Unlock full access