#file: git-cheat-sheet.sh v1.0.0 docs at the end
# get help
git --help
# initialize
git init
# add the reamde file for the new project
touch README.md
git add README.md
export component_name=bash-stub
export component_version=1.8.8
export project_dir=/cygdrive/c/Data/morphus/morphus.1.2.8.dev.ysg/sfw/sh/utils/bash-stub/
cd $project_dir
# add remote origin
git remote add origin https://github.com/YordanGeorgiev/$component_name.git
export MyGitUserName="YordanGeorgiev"
export MyGitLogin="first.last@gmail.com"
git commit -m "first commit"
git config --global user.name $MyGitUserName
git config --global user.email $MyGitLogin
#create the master branch
git push -u origin master
git add *
git commit -m "Adding $component_name $component_version files recursively "
git log
git status
# to remove all the files
git rm *
# to force master branch re-creation
git push --force -u origin master
man git-branch
wget --no-check-certificate https://github.com/$MyGitUserName/$component_name/archive/master.zip
# make git remember your pass
git config --global credential.helper cache
git config credential.helper 'cache --timeout=3600'
# stop make git remember your pass
# Purpose
#==============================================================================
#
# VersionHistory
#==============================================================================
# 1.0.0 --- 2013-09-20 22:25:56 --- Initial version
#eof file: git-cheat-sheet.sh