To sync the main repo and own repo,
git remote add upstream https://github.com/twindle-co/twindle.gitgit fetch upstreamgit merge upstream/maingit push origin mainGreat, @praveen2896 thanks for documenting this! @Sheetal777 or anyone else could verify?
You have two options
Pull will get the latest changes from GitHub
And push will send your latest changes to GitHub
@thunder-coding Could you collaborate on making sure this is a step by step explanation so that a newbie can understand? The discussion is about how to keep the forked repo in sync before creating PRs. This will be synced up with the wiki once it is done!
https://github.com/twindle-co/twindle/pull/8#issuecomment-708329032 may also be helpful
AzureAD+SwatiAnandRao@LAPTOP-MJRBVINQ MINGW64 ~/Desktop/GIT/twindle (main)
$ git push origin main
*remote: Permission to twindle-co/twindle.git denied to SwatiRaoDataEnthusiast.
fatal: unable to access 'https://github.com/twindle-co/twindle/': The requested
URL returned error: 403*
I am getting above error when I am trying to push into origin?
@SwatiRaoDataEnthusiast
You are making a commit directly to main repo. You have to first commit to your forked repo then you can make a PR from Github to the main repo.
I have attached some snaps below.
Here you can see my origin is my forked repo link. You can check your's by running git remote -v.

Then after making changes you can run git status commands to check what changes you have made.

Here you can see I have made some changes in 'pranav.md' file.
So to push these changes to my forked repo I can run these commands.
git add .git commit -m "Updated pranav.md"git push -u origin main
Now they will be reflected to my forked repo.

Now you can make a PR.

@johnjacobkenny Please pin this issue, as it is hard to find it now.
Could someone follow up on getting this into FAQ on a priority
@SwatiRaoDataEnthusiast
You are making a commit directly to main repo. You have to first commit to your forked repo then you can make a PR from Github to the main repo.
I have attached some snaps below.
Here you can see my origin is my forked repo link. You can check your's by running
git remote -v.
Then after making changes you can run
git statuscommands to check what changes you have made.
Here you can see I have made some changes in 'pranav.md' file.
So to push these changes to my forked repo I can run these commands.
git add .git commit -m "Updated pranav.md"git push -u origin main
Now they will be reflected to my forked repo.
Now you can make a PR.
Just to add onto what @pranavgoel29 has said, you can change the path for origin using
git remote set-url origin _your forked repo url here_
@MumbiGachomba04 next time you can use the "Quote reply" option in the menu for any comment
It should be closed?
@johnjacobkenny documentation related thing can be moved to appropriate file under docs & this issue can be closed.
I'll close this since there is another issue to add it to docs #450
Most helpful comment
You have two options
OR
Pull will get the latest changes from GitHub
And push will send your latest changes to GitHub