Skip to content

Using git

Paul edited this page May 26, 2013 · 7 revisions
  • This guide is platform independent

Initial setup

  1. Set your username to keep track of who is making the edits:
    • git config --global user.name "**_YOUR USERNAME HERE_**"
  • Set your email to associate your changes with your git account:
    • git config --global user.email "**_YOUR GITHUB ACCOUNT EMAIL ADDRESS_**
  • Type git clone https://github.com/UCSD-TIES/DVS-Python.git. You should now have a copy of the git repo on your machine.
  • Type cd DVS-Python to enter your local repo. This is your local version of the program.

Using Git while programming

  1. Before you start work, pull the most recent changes from the server. Type: git pull
  • Do your work.
  • When you are ready to save your changes to your local repository, type git commit -m 'THESE ARE THE CHANGES I MADE' /directory/of/file/I/changed. The message in the single quotes should be a brief description of what you've done.
  • When you are ready to upload your local commits to the team's shared repository, type git push
Clone this wiki locally