Procházet zdrojové kódy

Improve the git instructions to update a PR.

Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com>
Raghuram Devarakonda před 10 roky
rodič
revize
18a8bcf072
1 změnil soubory, kde provedl 17 přidání a 7 odebrání
  1. 17 7
      docs/sources/project/review-pr.md

+ 17 - 7
docs/sources/project/review-pr.md

@@ -49,15 +49,23 @@ need to update your pull request with additional changes.
 
 
 To update your existing pull request:
 To update your existing pull request:
 
 
-1. Change one or more files in your local `docker-fork` repository.
+1. Checkout the PR branch in your local `docker-fork` repository.  
 
 
-2. Commit the change with the `git commit --amend` command.
+    This is the branch associated with your request.
+
+2. Change one or more files and then stage your changes.
+
+    The command syntax is:
+
+    	git add <path_or_filename>
+
+3. Commit the change.
 
 
     	$ git commit --amend 
     	$ git commit --amend 
 
 
     Git opens an editor containing your last commit message.
     Git opens an editor containing your last commit message.
 
 
-3. Adjust your last comment to reflect this new change.
+4. Adjust your last comment to reflect this new change.
 
 
         Added a new sentence per Anaud's suggestion	
         Added a new sentence per Anaud's suggestion	
 
 
@@ -72,15 +80,17 @@ To update your existing pull request:
         #		modified:   docs/sources/installation/mac.md
         #		modified:   docs/sources/installation/mac.md
         #		modified:   docs/sources/installation/rhel.md
         #		modified:   docs/sources/installation/rhel.md
 
 
-4. Push to your origin.
+5. Force push the change to your origin.
+
+    The command syntax is:
 
 
-        $ git push origin
+        git push -f origin <branch_name>
 
 
-5. Open your browser to your pull request on GitHub.
+6. Open your browser to your pull request on GitHub.
 
 
     You should see your pull request now contains your newly pushed code.
     You should see your pull request now contains your newly pushed code.
 
 
-6. Add a comment to your pull request.
+7. Add a comment to your pull request.
 
 
     GitHub only notifies PR participants when you comment. For example, you can
     GitHub only notifies PR participants when you comment. For example, you can
     mention that you updated your PR. Your comment alerts the maintainers that
     mention that you updated your PR. Your comment alerts the maintainers that