Tutorial on how to set up git using command line on your PC - ncicek/smart_garden GitHub Wiki

Welcome to the smart_garden wiki!

Install git for windows

https://git-scm.com/download/win
Download the exe file.
Install it. You should be able to keep all of the default configurations.

Run Git Bash

If everything went well, you should be able to find "Git Bash" on your PC. Run it. Find a place on your computer to create a workspace. A workspace is what I call the folder in which you will have all stuff that we will eventually deliver for our lab. It will mirror our master branch (the files that we commit). Now run the following commands:

git init (this will initialize a hidden folder inside the workspace which will help git keep track of your commits)
git remote add origin https://github.com/ncicek/smart_garden.git (IMPORTANT: IF YOU ARE COPYING THIS DIRECTLY TO THE TERMINAL, MAKE SURE TO REMOVE THE SPACE BETWEEN origin and https:// and make your own space. For some reason it created a special character in my terminal which caused a bunch of weird issues.)
git pull origin master (this is how you copy what is currently in our repository so that you are up to date with the latest changes).
git add "file_of_some_sort" (this tells git that you are planning to commit this file to the repository. Obviously, point to a real file. I encourage you to try and use an empty class if this is your first time).
git status (tells you which files you have in your "stage". The stage is where all the files that you are planning to commit. This is more of a sanity check to make sure that you are committing the right files).
git commit -m "Some message" (Despite what the name suggests, this is not how you send the files to the repo. This is just to comment on the changes that you made. It is recommended that you always comment the changes with some sort of text)
git push -u origin master (this is where shit gets real. This is the command that will submit the stage changes to the repo. It will ask for your username and password).