git 查看分支圖
在git config文件里面設置別名。git config --global alias.lg "log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue ...
在git config文件里面設置別名。git config --global alias.lg "log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue ...
git log --graph --decorate --oneline --simplify-by-decoration --all ...
查看本地分支: 查看所有分支:(本地和遠程) 操作過程: 在gitlab遠程的dev分支的一個commit節點創建 fix_view_task 分支,本地同步下遠程的變化,本地切換到 fix_view_task 分支進行開發,bug修改完后,本地切換到 dev ...
...
// 顯示本地分支和服務器分支的映射關系 git branch -vv // 切換分支(和創建分支就差一個-b參數) git checkout {{branch_name}} // 創建新分支,新分支的代碼來自於當前分支 git checkout -b [分支名] ...
可能發生的情況 查看創建的分支來源 ...
git branch -vv(兩個v),就能夠看到本地分支跟蹤的遠程分支。 ...
基於哪個分支創建的? Answer git reflog --date=local | grep < ...