git clone -b --depth=1 <分支名称> <仓库地址>
说明:--depth=1 表示只克隆最近一次commit的分支完整内容,这样克隆的项目就不会很大
--depth=1
git config --global --replace-all core.pager "less -F -X"
git config --global --unset user.name
git config --global --edit
git show commit_id
git show-ref --tag | awk '{print ":" $2}' | xargs git push origin
git tag -l | xargs git tag -d
发表评论
评论