Contribute to github

  1. configure local git
     $ git config --global user.name "frdeng"
     $ git config --global user.email "frank.deng@oracle.com"
  2. fork a repo on github.com
  3. clone repo
     $ git clone https://github.com/frdeng/oraclelinux.git
  4. add upstream to your repo
     $ git remote add upstream https://github.com/boxcutter/oraclelinux.git
  5. fetch upstream
     $ git fetch upstream
  6. set upstream branch
     $ git branch --set-upstream-to=upstream/master master
  7. create new branch for changes
     $ git checkout -b newfix
  8. make code changes
  9. add changes
     $ git add .
  10. commit changes
     $ git commit -m "comments"
  11. push to origin
     $ git push --set-upstream origin newfix
  12. create new pull request on github.com

Tech/git (last edited 2017-01-11 23:48:30 by frank)