This is how I use github, old school. This readme file is actually the tutorial, no fancy youtuber here, and its purpose to remind me to actively use git. I use a variety of IDEs, so I find it easyier to use the command line to use git, rather than try to use each IDEs' git "wedges".
I mostly store my files and projects as private because, I often have half baked ideas and models, then I do the rest in my head or imagine its done.
I hope I will try to do a few complete public projects in the spirit of sharing.
As I understand it, use git for organizing, storing, tracking changes/versions, and collaborating on software (or any file based) projects.
- set up secure connection to github, I made ssh keys using another tutorial: The good news is after you set up your keys and have git installed locally, you just use the commandline in your project folder.
-
open a terminal window.
-
On MacOS, or linux I supose, you can use a variety unix/git commands:
git status
pwd
ls
cd tf_stock1 <- (this is a current project I am working on.)
ls -al
One important command, is "git status", note that it operates on your current folder, so make sure you are in the right folder at all times, you can have many different folders using git. If you had a heirarchy of folders you could probably create quite a pickle for yourself so I tend to have a flat folder structure, i.e. have a projects folder and then put all your projects under that folder and do git commands within each folder.
git status
- Using "git add ." you add ALL the new/changed files/folders in this folder, note you can specify an individual file folder and probably a list too.
- you must do the commit and push steps to complete the add.
git add .
git status
git commit -m " Adds comments for added file(s) \n"
git push