- Fork.
- Clone.
git check out -b [name-of-your-feature]
- Edit your code.
git commit -a -m [your-commit-message]
git push --set-upstream origin [name-of-your-feature]
And that's it! Go get your Hacktoberfest swag.
git check out -b [name-of-your-feature]
git commit -a -m [your-commit-message]
git push --set-upstream origin [name-of-your-feature]
And that's it! Go get your Hacktoberfest swag.
For further actions, you may consider blocking this person and/or reporting abuse
Ayu Adiati -
elanatframework -
Samuel Ekirigwe -
VISDOM 04 -
Top comments (3)
I found myself needing the "How to keep updated with the mainstream repo" too:
git checkout master
git remote add upstream <original_repo>
git fetch upstream
git merge upstream master
git push
Your forked repo is now synchronized with the upstream!
Embarrassed to say that I totally needed this reminder for a few minutes last night.
You are not alone 😉 I rely (probably too much) on the (really well made) integration of Git in Webstorm. Therefore I also often have to search what are the commands to submit a PR for a forked project.