Go to your directory where you want to your own local repositorycd ~/
mkdir newreponame
Add “Read Me” file that describes your codeecho "# Learning Git" >> README.md
Intialize Gitgit init
Add “Read Me” filegit add README.md
Mark all of your current files to be pushed to the Origin git add *
Add your Commit messagegit commit -m "my first commit"
Add the remote Origin repogit remote add origin https://gitsomewhere/username/nameofrepo.git
Check remote origins that are configuredgit remote -v
Delete origin if neededgit remove rm origin
Configure Global Variablesgit config --global user.email "your.email@email.com"
git config --global user.name "git-repo username"
Pull files down to local repo for the latestgit pull
Push all local filesgit push
Make some changes to your local files, commit and push againgit commit -a -m "updated README file"
git push
Rename Git branchgit branch -m old_name new_name
-or-git push origin :old_name
git push --set-upstream origin new_name