git branch
git branch -r
git branch -a
git checkout -b myRelease origin/Release
Branch myRelease set up to track remote branch Release from origin.
Switched to a new branch 'myRelease'
checkout远程的Release分支,在本地起名为myRelease分支,并切换到本地的myRelase分支
合并前要先切回要并入的分支
把cloud分支合并入master分支
git checkout master
git merge cloud
git log
git reset --hard <commit-id>
git commit -m '
>1、.....
>2、.....
'
git commit --amend 可以查看到刚刚commit的log信息
-b 分支名
git clone -b master [email protected]:mywebadd/changmei-android-2.0.git /f/AndroidProjects/Changmei
git add. //注意:这里有个点.
git commit -m 'message'