How To Install And Use Git

Using Git to manage your code is an essential skill to have. The commands below show how to set up Git, set up a repository, and push files to it remotely.

sudo su
apt-get update
apt-get install git

Navigate to the Directory you want to use with Git

git init
git add .
git commit -m "initial commit"

Go to github, login and copy the URL for your project, then paste is customize the command below.

git remote add origin

git remote -v

#If origin URL is wrong you can change it with:
#git remote set-url origin 

git push -f origin master