本文记录常用的git操作
git clonegit add -Agit commit -mgit tag v1.0.0git push origin --tag //推送tag到远程git checkout -b dev //新建dev分支git branch -a //查看本地+远程分支git checkout -b dev origin/dev,//作用是checkout远程的dev分支,在本地起名为dev分支,并切换到本地的dev分支git push origin local_branch:remote_branch//这个操作,local_branch必须为你本地存在的分支,remote_branch为远程分支,如果remote_branch不存在则会自动创建分支。git push origin :remote_branch,local_branch//留空的话则是删除远程remote_branch分支。git remote -v //查看所有远程的网址新闻热点
疑难解答