git 常用命令

1.删除并且屏蔽文件

  git rm --cached *.xcuserstate
  git commit -m "Removed file that shouldn't be tracked"

2.删除远程分支

 oschina:

git push oschina :your_branch_name

 github:

git push origin :your_branch_name

3.删除本地分支

  git branch -d your_branch_name

4.查看分支  

git branch -a

 

posted @ 2013-11-21 10:20  hellocby  阅读(228)  评论(0编辑  收藏  举报