git常用操作

1.clone

git clone git://example.com/myproject

git clone -b [branch] git://example.com/myproject

2.查看分支

git branch

git branch -a        (所有分支)

3.切换分支

git checkout origin/***

git checkout -b *** origin/***   创建并切换分支

4.

git commit

git push

git pull

5.

git remote add

6.

git log

你可能感兴趣的:(git常用操作)