Commit 6459e3ed authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Updated with more info on how to surgically stage code

parent aefb954b
......@@ -41,17 +41,29 @@ git checkout master -b your-change-name
### Committing You Changes
Commit your chagnes as usual, making sure of course all your changes must contain the Signed-Off line.
The first thing you need to do is review your changes using the following command...
```sh
git diff --staged
```
#### Commit Hunk-By-Hunk
If you are 100% happy, commit your chagnes as usual, making sure of course all your changes must contain the Signed-Off line.
You can commit hunk by hunk, or group of hungs by group of hunks using the following...
#### Adding Hunk-By-Hunk
You can add hunk by hunk, or group of hungs by group of hunks using the following...
```sh
git add --patch
```
Type ? at the prompt to get help.
Type ? at the prompt to get further help. The (e)dit option is VERY useful to pull in only changes that are surgical.
#### Removing Hunk-By-Hunk
If you mistakenly git add --patch a wrong hunk or need to ammend it use the following...
```sh
git reset --patch
```
## Submitting Your Changes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment