git clone --recurse-submodules -j8 git://github.com/foo/bar.git
Source: here
git submodule update --remote --merge
Source: here
git clone -b 0.7.0 --single-branch https://github.com/spchuang/videojs-markers.git
Reference here
alias push_github='echo "Enter commit message : " && read MSG && git add . && git commit -m "$MSG" && git push'
git log --pretty=oneline --graph --decorate --all
git rm -r --cache .idea/
to grap changes on protected branch
git stash
# create new branch
git checkout -b new_branch
# pop your modified code on new_branch
git stash pop
git fetch origin remote_branch_name
git checkout -b remote_branch_name FETCH_HEAD