GitHubGuidePart3
GitHubGuidePart3
Part 3
Contribution To Open Source
Zero To Mastery
by Andrei Negoie
Lection 148. We start from 05:41 minutes ( follow these steps)
1
6.Type start code . (for VS Code should open the entire folder)
7.Branch out git checkout -b test
8. Add your name to the list of contributors
9. Save all CTRL+S
10. git add .
11. git commit -m“test“
12. git push origin test
13. git push
14. go back to https://github.com
15. See a notification
16. Finish a pull request as
appears in the video.
test test
A different way adding yourself to CONTRIBUTORS.MD I've decided
We could skip the previous page and do the following to add myself this way
2
1
this
Pull request
Is now merged
Into master
Adding
My name
To contributors
list
master master
After adding myself to a contriburors list via GitHub website, I finally decided
to repeat these steps, but this time by cloning a repository, adding myself to the
Contributors list, and pushing it back to a gitHub (as it apears in the original video)
I can say that I've edited the contributor's list two times so far.
Dmitry 1. By editing it on a GitHub website.
2. By cloning a repo, modifying a contributors list, and pushing it back to a GitHub
3. This caused the notification to appear once again.
^ HEAD^ means the first parent of the tip of the current branch.
6. You will get the following output
7. Go back to commits (gitHub) and check if it's been deleted.
8. Repeat the previous steps again to delete another
desired commints you want.
1. Go to a forked repository, open commits link, and find a commit you want to fix.
2. Copy a commit's ID to a clipboard
3. Open terminal window.
4. Use this command. git revert fd8f4fe
5. hit ENTER.
6. The vim editor window will appear.
7. The yellow text will represent a commit message.
`
8. Hit insert button on your keyboard. This will allow you to manipulate a text.(use arrows to navigate)
9. Delete the yellow text, and write hello world (for example)
10.Press ESC button to exit the text editor mode.
10.Hold down SHIFT+ : this will bring you to the vim script mode(check the left bottom corner, you will put commands there)
11. Type wq (w= write) (q=quit saving changes) and hit ENTER
12. You will recieve the following output, with updated commit message
13. type git push to apply changes
SHIFT+:
Vim editor
Step 14.Go back to GitHub and see the changes
Dmitry
A few things to keep in mind before we continue
https://brigade.engineering/crap-wrong-mode-9021375c2826
http://learnvimscriptthehardway.stevelosh.com
The End of part 3