Go to your directory where you want to your own local repository
cd ~/
mkdir newreponameAdd “Read Me” file that describes your code
echo "# Learning Git" >> README.mdIntialize Git
git initAdd “Read Me” file
git add README.mdMark all of your current files to be pushed to the staging area
git add *Show changes betwen working directory and staging area
git diff <file>Add your Commit message
git commit -m "my first commit"Add the remote Origin repo
git remote add origin https://gitsomewhere/username/nameofrepo.gitCheck remote origins that are configured
git remote -vDelete origin if needed
git remove rm originConfigure Global Variables
git config --global user.email "your.email@email.com"
git config --global user.name "git-repo username"Pull files down to local repo for the latest
git pullPush all local files
git pushMake some changes to your local files, commit and push again
git commit -a -m "updated README file"
git pushRename Git branch
git branch -m old_name new_name
git push origin :old_name
git push --set-upstream origin new_nameDisplay the status of the working directory
git statusReset a file from respository to a previous known working state
git reset <file>