Change and push code - GitHub (Admin):

Table of Content:

About:

Change and push code - GitHub.

Problem:

Lets make a senario. We are pretending that we use automation to send out emails to each employee annually to remind them to change their passwords. Let us in this senario pretend that there is an spelling error in this email. This makes the employees think it is phishing email, so we would like to correct it.!122aa.png

How to fix it:

  1. Sign in to your company GitHub.

  2. Find the repositories you are looking for. In this particular case, use the search bar. Click ‘Enter’ and click on the code.
    !123aa.png
    !124aa.png!125aa.png

  3. Edit the file. In this case you need to press the ‘.' button on your keyboard to enter and open 'edit mode’.!126aa.png

  4. Do your changes. In this case, spell the word correctly.!127aa.png

  5. Then click this button to make a pull request.!128aa.png

  6. Write what changes you did, and click ‘Commit and Push’.!129aa.png!130aa.png

  7. Click 'Commit to a New Branch'.!131aa.png

  8. Then create a new branch name. Usually something simple like ‘spellfix-siri” and press 'Enter’.
    !132.aa.png

  9. Then ‘Switch to Branch’.!133aa.png

  10. Then wait.


Go to repository:

  1. click ‘Go to Repository’.!134aa.png
  2. Click ‘Compare & Pull request’ and ‘Create pull request’.!135aa.png!136aa.png
  3. Then add the approver. Then wait for the approval to be approved.!137aa.png
    !138aa.png
    !139.aa.png
  4. Then wait for the approver to approve your change!

Merge Pull Request:

  1. Then click ‘Merge pull request’.!140aa.png!141aa.png!142aa.pngAnd you are done. 😄