You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git fetch upstream main
git checkout <your-branch>
git pull upstream main --rebase
git push origin <your-branch> -f
Git: Clean up
git branch -D main
git checkout -b main upstream/main
Git: Squash commits
Follow the below steps to squash commits in a GitHub pull request:
git remote add upstream https://github.com/AlgoDataStructure/data-structure.git
git fetch upstream main
git checkout <your-branch-name>
git rebase -i upstream/main
==
- Choose squash for all of your commits, except the first one
- Edit the commit message to make sense, and describe all your changes >
==
git push origin <your-branch-name> -f