Git Quickstart Guide for Robotics(or anyone)

less than 1 minute read

Git Quickstart Guide for Robotics(or anyone)

First Step

  • Create a github account.
  • Go to your home page and click on new. home page screenshot
  • Name your repo. Make sure to click Initialize with ReadMe. Then create your repo. new repo screenshot
  • It should look like this: example git repo screenshot

Windows

  • Instal Git SCM. This is a CLI (command line interface) for using Git.
  • After you download and install Git SCM then run the Git Bash application. A terminal should appear.
  • Now get familiar with these commands:

Clone your repo from github: git clone https://github.com/username/exampleRepo

Change the current working directory(or folder) to exampleRepo. cd ~/exampleRepo"

To add new files to your repo: git add -A

  • -A will check all of the new files and add them to the repo

To do a commit: git commit -a -m "working code: nov 3"

  • -a adds everything that you have done.
  • -m includes a message that is what the commit is named in the form of a "String".
  • The "String" is what the commit is named

To push your code(after committing) to github: git push

To pull your code from github: git pull

Contact Me for Help/Questions