Skip to content
davewilks edited this page Mar 2, 2017 · 17 revisions

Welcome to the devportal wiki!

Git Commands

If you're new to Git or just want a referesher, here are a few common and useful Git commands you'll use while working in the devportal repo.

  • git branch to see what branches you have on your machine.
  • git status to check the status of your current branch.
  • git checkout <branchname> use to access your different branch. For example, you'll use git checkout master all the time to access the master branch.
  • git pull origin master fetches changes in the repository and merges them.
  • git branch <branchname> creates a new branch. Do this for every change you make and associate the branch name with the changes. For example, call it the name of the issue you're working (dev-446) or the area you're working in (formulas).
  • git add -A adds your changes to the staging area of your branch. You still need to commit them, though.
  • git commit -m "<message>" commits your changes to the branch.
  • git push origin <branchname> sends your changes to repository and creates a pull request.
Clone this wiki locally