This article shows how to install git and post project to github on Mac OS.
Install git
On Mac OS, there are several ways to install git. I chose the Xcode to install the package.
Step 1 Check if git is already installed.
git -- version
Step 2 Download and install git
https://git-scm.com/download/mac
Step 3 Sign up and create an account on GitHub
Step 4 Configure github email and username to git.
git config --global user.email "yourGitHub@email.com"
git config --global user.name "GitHub username"
Step 5 Create/Get into project file - tracking
Take the “gitproject” folder on desktop as example
cd desktop/gitproject
Step 6 Commands
git init
git status
git add (the file you want to upload)
git commit -m "description"
Step 7 Deploy to gitHub
git remote add origin https://github.com/JessiePen/GitProject.git (location of your project)
git push -u origin master