1. how to create a new git
open terminal in your linux
###########################################################
#1. open the terminal and create a directory or folder for the project
###########################################################
mkdir Demo
###########################################################
#2. enter the directory
###########################################################
cd Demo
###########################################################
#3. create a README.md
###########################################################
touch README.md
###########################################################
#.4initialize the local repository with:
# let the Demo directory be a local git repo
###########################################################
git init
###########################################################
####5. tell git program. you care about this file
#### and want to track any changes from this point forward
###########################################################
git add README.md
###########################################################
# when you finished a file or code or part of them,
# you want to pause or end tody's remote
# you can make a commit
# this is similar to a record, when you come back
# this can note what you revised or edited
###########################################################
git commit -m "this is my first edition"
###########################################################
# add your remote repo URL(your github repo URL) to this local repo
#to connect your computer to GitHub with the command:
#Let's look at this command step by step. We are telling Git to add a remote called origin with the address https://github.com/<your_username>/Demo.git (i.e., the URL of your Git repo on GitHub.com). This allows you to interact with your Git repository on GitHub.com by typing origin instead of the full URL and Git will know where to send your code. Why origin? Well, you can name it anything else if you'd like.
###########################################################
git remote add <short remote name> <remote URL>
#for example:
git remote add origin https://github.com/github-song/Demo.git
#################################################################
# push your local git repo to the remote git repo
#######################################################
git push -u origin master