Answers
Here are the answers to the questions given above:
- Add patterns matching the pathnames of those build artifacts to a
.
gitignore
file. - Define a custom
diff
driver and provide the regular expression pattern matching the main “sections” of code withxfuncname
. Also, add an appropriate regular expression defining words in that programming language withwordRegex
, and perhaps also define whitespace problems with thewhitespace
attribute. - Use
git reset --soft HEAD~2
to rewind the branch and create a joined commit withgit commit
, or use interactive rebase. - Perform a soft reset,
git reset --soft HEAD^
, construct the first commit withinteractive add
, test the code withgit stash --keep-index
, pop the stash if the tests pass, and create the first commit withgit commit
and the second withgit commit -a
; there are other solutions. - Use
git stash
to stash away current changes, create a WIP commit, or create a new detached working area for the urgent...