Get the latest updates to all the branches
git fetch --all
fetching instead of
pulling so we don't clobber our working directory with a merge... yet.
--allmakes sure all branches are fetched, not just the tracking branch.
Make a new branch for the issue you are working on.
git checkout origin/8.x -b 12345-twig-views-rss
12345followed by a meaningful name of sorts
Apply the Patch to your git
curl http://drupal.org/files/name-of-patch-12345-2.patch | git apply --index
curlfollowed by the patch URL will print the patch contents to standard output.
|will pump the standard output into the
--indexwill do the equivent to a
git add -A .and the changes are staged.
Add and Commit the patch
git commit -m "12345-2"
Test and/or fix ...
Add files and Commit changes
git add -A . && git commit -m "12345-3 fixed some unicorns... etc"
-Aflag makes sure that additions, modifications and file deletions get staged.
&&Allows for two commands to run right after eachother on one line.
Rebase to make sure you have the latest from core
git fetch --all && git rebase origin/8.x
Make an interdiff (diff between last two commits)
git show > interdiff.txt
git showis equivilent to
git diff HEAD~1..HEADexcept it has commit messages/notes in it.
>will take the output and send it to a file of which we name after it.
Make a new patch
git diff origin/8.x > name-of-patch-12345-3.patch
12345and the next comment #
3for the comment we are about to post.