gitcheckout-b的详细讲解
奥斯卡历届最佳影片创建分⽀: $ git branch mybranch
切换分⽀: $ git checkout mybranch
创建并切换分⽀: $ git checkout -b mybranch
美剧老板更新master主线上的东西到该分⽀上:$git reba master
六一快乐英文
切换到master分⽀:$git checkout master
更新mybranch分⽀上的东西到master上:$git reba mybranch
price tag歌词提交:git commit -a
对最近⼀次commit的进⾏修改:git commit -a –amend
合肥装饰设计培训commit之后,如果想撤销最近⼀次提交(即退回到上⼀次版本)并本地保留代码:git ret HEAD^
合并分⽀:(merge from) $ git checkout master
modernizr
$ git merge mybranch (merge from mybranch)
删除分⽀: $ git branch -d mybranch
强制删除分⽀: $ git branch -D mybranch
列出所有分⽀: $ git branch
wj查看各个分⽀最后⼀次提交: $ git branch -v
查看哪些分⽀合并⼊当前分⽀: $ git branch –merged
查看哪些分⽀未合并⼊当前分⽀: $ git branch –no-merged
更新远程库到本地: $ git fetch origin
test drive
推送分⽀: $ git push origin mybranch
取远程分⽀合并到本地: $ git merge origin/mybranch
取远程分⽀并分化⼀个新分⽀: $ git checkout -b mybranch origin/mybranch
opus magnum
删除远程分⽀: $ git push origin :mybranch
reba: $ git checkout mybranch
$ git reba master (reba from master)
举例: $ git checkout rver
$ git reba –onto master rver client
$ git checkout master
$ git merge client (fostforward)give in to me
$ git reba master rver (checkout ver)
$ git merge rver
$ git branch -d client
$ git branch -d rver