For a Second Pull Request, I used a Fork & Branch Workflow mentioned below:
As you're making your 2nd PR, you already would have so you can skip this step.
For the sake of mentioning here is how you can do that:
Click on the Fork in the top right corner (below your profile icon) on https://github.com/twindle-co/twindle.
git clone <url of forked repo> cd twindle to enter the cloned repo.Syntax: git remote add <remote> <url of original repo>
git remote add upstream https://github.com/twindle-co/twindle.gitNote: Git Remote to pull changes from the original repo is upstream here. You can name it anything.
We will need it at a later point.
Method 1
git branch featuregit checkout featureMethod 2
(shorthand for Method 1)
Syntax: git checkout -b <branch-name>
git checkout -b featureExecuting either method creates & switches to the new branch i.e feature.
Any changes made will be in the feature branch not main.
git add .git commit -m "<message>"Syntax: git push <remote> <branch>
git push origin featuregit pull upstream mainNote: You need to switch the branch to main before deleting the feature branch (next command)
git branch -d featuregit push origin maingit push origin --delete feature(You need to do this time-to-time to update your Forked Repo > main branch)
git pull upstream maingit push origin mainyou can also do this step as mentioned in #41
There's a typo in step 7 last line
it should be git push origin --delete feature
Good Work ๐
Thanks, fixed it! ๐
Great walkthrough @tusharkandpal :partying_face:
Thanks, @johnjacobkenny ๐
good
Awesome, good work!
Great work !
Great !
Awesome @tusharkandpal ๐
This was referenced in the FAQ document and updated in the PR #201 โ
Most helpful comment
good