/peripherals

Embedded Team: TMS570LS1224 Peripherals - CAN, SPI, PWM, I2C, ADC, etc...

Primary LanguageC

peripherals

TMS570LS1224 Peripherals: CAN, SPI, PWM, I2C, ADC, etc...

Getting started with git

Tutorial: https://www.youtube.com/watch?v=1xfp2Cx9FUk

the main workflow is usually like this:

  1. install git on your machine https://git-scm.com/download/
  2. use the git bash terminal window to work with the repositories:
  3. clone the repository of choice: in your terminal window, navigate to the folder you want to store the repository in, and send the command git clone https://github.com/sfuphantom/peripherals.git for the peripherals repository for example
  4. now if you navigate to that folder in your normal file browser, you should see the repository folder with all the files in it
  5. you can now edit the files and add new files into the repository folder like normal, as you would any folder system
  6. to register new added files you have placed in the repository folder in your file browser, use the command git add -A in your terminal window while in the directory of your repository (cd /documents/peripherals will change your active directory to /documents/peripherals, and cd .. will change your active directory up one level)
  7. git add -A will add all new files repo folder to be tracked by git
  8. to save the changes you have made and the files you have added, use the command git commit -m "fill in your update here" to commit your changes and save them with a useful message
  9. when you are ready to update the centralized repository on github with your changed localized cloned repository, use the command git push and you should see your changes show up on github

Really good tutorials on how git works

http://rogerdudler.github.io/git-guide/

https://learngitbranching.js.org/

http://www.ndpsoftware.com/git-cheatsheet.html#loc=workspace