Skip to content
electrodynatronic edited this page Dec 2, 2014 · 6 revisions

Note that git and github are not the same thing. Git is a document/source code tracking tool. Github is an online host of git repositories. One may use git without needing or using github. Github hosts our files online for us and adds additional features such as the issue tracker.

Installation

Usage

  • Clone the Electronics repository. Cloning the projects to your local machine allows you to work on projects offline, and synchronize them in a batch operation. This may or may not be your preferred way to complete certain tasks. Simple edits may be accomplished more conveniently by using the web browser interface.

    • git clone https://github.com/electrodynatronic/Electronics.git
  • Update your working copy. For projects which you have previously cloned, be sure to git pull periodically to ensure that you're using the most up-to-date version of the project.

    • git pull
  • To update the project from your local copy:

    1. Add any new or renamed files
    2. Remove any files, if needed.
    3. commit your changes (to your local copy)
    4. push your changes to the master copy (on github).
    • To add a file or files: git add . note: This command will index any new files and staging modified files from your working tree to be committed. But it will ignore whatever you have removed files from your working tree.
    • To add and delete files git add -A note: This command will add any new files,modified content, and removed files from your working tree.
  • To commit your changes to a file or files: git commit from your local project directory. You may have to configure some things the first time you do this.

  • To update the github repo that you cloned from, so that your changes are reflected: git push

  • See also:

Clone this wiki locally