install:
sudo apt-get install git
config:
git config --global user.name "your_github_user_name"
git config --global user.email "your_github_user_email"
push files to git
You should make a repository both on github and local computer.
…create a new repository on the command line
echo "# gittest" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/bfx1000/gittest.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/bfx1000/gittest.git
git push -u origin master