Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
William Crandell edited this page Oct 18, 2015 · 1 revision

Notes


How to used fresh_tomatoes.py as a submodule

Obtained from @CrandellWS/Udacity-Nanodegree

  • Git Submodules
    1. Fork the orignal repository at https://github.com/adarsh0806/ud036_StarterCode
    2. Get the url to your clone fork (SSH or HTTPS your preference)
    1. Add the repository as a submodule using the terminal
    • Example with SSH
  • Important Notes
    • When making changes to the submodule
      • cd into the submodule directory Then
        • When changes are made to the actual submodule
          • git add -A -> add all changes to the submodule
          • git commit -> commit all changes to the submodule
          • git push -> push changes to the remote submodule's repository
        • When changes are made to the submodule's repository
          • git pull-> pull changes from the remote submodule's repository
          • git add -A -> add all changes to the submodule
          • git commit -> commit all changes to the submodule
      • cd .. change directories to main project
      • git add -A -> add all submodule changes to the project
      • git commit -> commit all submodule changes to the project
      • git push -> push all changes to the project's remote repository
    • To use from ud036_StarterCode import fresh_tomatoes

Clone this wiki locally