https://git-scm.com/docs/

 

 

 

git_clone_repository

git clone ssh://hostname@HostAddress:SSHPort/GITlocation.git/

git_convert_local_Dir_to_git

cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin master

 

git_create_repo

 

 

git_create_branch

git checkout -b <branch>

 

git_push_branch

git add .
git commit -m "commit message"
git push -u origin <branch>

 

git_reset_repo

git commit -a -m "Saving my work, just in case"
git branch my-saved-work

git fetch origin
git reset --hard origin/master