Git step by step guide
1. Clone Repository
Go to origin repository and fork
Go to [username]/[repository name]
clone forked repository
1
git clone [fored repo address]
set remote repository as upstream
1
git remote add upstream [original repo address]
2. [Recommend] Make and checkout new branch
1
git checkout -b [branch name]
3. How to PR
Sync forked repository with original repository
Go to origin repository and make pull request
Delete local branch after pr is merged
1
git
Appendix
How to sync fored repoitory With original repository
1
2
3
4
git checkout [main or master]
git fetch upstream
git rebase upstream/[branch you want to sync with]
git push origin [main or master]
1
2
3
4
5
git checkout [main or master]
git fetch upstream
git push
git stash save --keep-index
git stash drop