$ git clone [email protected]:username/node.git
$ cd node
$ git remote add upstream https://github.com/nodejs/node.git
$ git checkout -b my-branch -t origin/master
$ git config --global user.name "J. Random User"
$ git config --global user.email "[email protected]"
Commit:
$ git add my/changed/files
$ git commit
$ git fetch upstream
$ git rebase upstream/master
$ git push origin
You can push more commits to your branch:
$ git add my/changed/files
$ git commit
$ git push origin my-branch
Or you can rebase against master:
$ git fetch --all
$ git rebase origin/master
$ git push --force-with-lease origin my-branch
Or you can amend the last commit (for example if you want to change the commit log).
$ git add any/changed/files
$ git commit --amend
$ git push --force-with-lease origin my-branch