Git一些常用命令

这些GIt命令都要先在终端中cd到项目文件夹/或者右击项目文件夹在终端打开

1、查看当前分支

git branch

2、查看远程仓库所有分支

git branch -a

3、直接拉取远程某个分支的代码

git clone xxx.git --branch 分支名

4、查看pod里面所有第三方库的版本号 

cat Podfile.lock
原文地址:https://www.cnblogs.com/qq95230/p/14450525.html