缓存
git stash
git stash pop
git stash list
git stash apply --index stash@{0}
更新
git svn rebase
查看
git status
放弃本地修改:
git reset –hard HEAD
查看远程分支
git branch -a
查看本地分支
git branch
切换本地分支
git checkout v1.2.0
本地提交
git commit -m “提交说明内容”
push到远程
git svn dcommit
更新所有分支,命令可以简写为:
git fetch
git fetch --all
放弃本地某个文件的修改
git checkout 文件名
删除目标分支
git branch -D master
从svn克隆
git svn clone <svn仓库路径> [本地文件夹名] [其他参数] 相当于git clone
git svn clone file:///d/Projects/svn_repo proj1_git -s --prefix=svn/
git init
clone远程
git clone https://gitee.com/oschina/android-app.git
clone远程分支
git clone -b v4.1.7 https://gitee.com/oschina/android-app.git
更详细的内容可以看这里:Git简要笔记 GitProfile