$ git clone https://github.com/[remote repo]
$ git remote -v
$ git branch
$ git add -A
: stages All.$ git add .
: stages new and modified, without deleted.$ git add -u
: stages modified and deleted, without new.
$ git checkout -b [name_of_your_new_branch]
$ git push origin [name_of_your_new_branch]
- git clone your repo
- modify file as you want
$ git add .
$ git commit -m "some comments"
$ git push origin [name_of_branch_to_push]
- git clone your forked repo
$ git remote -v
: check if upstream is set. Upstream is the repo you fork from$ git remote add upstream [upstream repo]
: if upstream not set$ git fetch upstream
: download the lastest update as a new branch to your local$ git merge [newly download branch]
$ git push origin [branch name]
: update your remote forked repo