This assumes that you already know how Git works. I've written down how to do a few of the things that I do over and over again. Feel free to add your own / update the existing instructions.
git fetch https://github.com/drivechain-project/mainchain
git checkout -b upstream FETCH_HEAD
git push -u origin upstream
git remote add upstream https://github.com/drivechain-project/bitcoin
git fetch upstream
git checkout -b newBranch upstream/mainchainTravis
git push -u origin newBranch
git fetch
git checkout fees // the branch I want to update
git fetch https://github.com/drivechain-project/sidechain
git merge FETCH_HEAD fees
git push -u origin fees
git checkout -b newbranch existingbranch
git add .
git commit --amend
git push -u --force origin nolibm
git fetch https://github.com/bitcoin/bitcoin 18c1325dcdb2eb2f2119bd558c111ed439038cc6:newBranch
git remote add upstream https://github.com/bitcoin/bitcoin
git fetch upstream
squash if you want to:
git rebase -i HEAD~nCommitsToSquash
git push -u origin rebase
Make a branch based on the branch you want to cleanup with the sha256 of the commit before you started adding things.
git fetch https://github.com/bitcoin/bitcoin sha256:newBranch
upload the branch
git push -u origin newbranch
Go on to github and make a pull request from the old branch with the changes, into the new branch before the changes.
Use github.com to squash and merge