add a function for git
Merge branch 'dev' of https://github.com/Tinrail/learngit into dev