移除已合併的分支
問題
當多人協作時,其他成員 git merge 後,自動刪除來源時,
執行指令 git pull 有出現下列訊息:
執行指令 git pull 有出現下列訊息:
Your configuration specifies to merge with the ref 'refs/heads/feature/your-branch-merged'
from the remote, but no such ref was fetched.
from the remote, but no such ref was fetched.
解決方法
git update command
使用指令如下擇一:
git remote update -p
# or
# or
git remote update -prune
查看 Log 方法
date: 2020/05/13 v1
使用指令範例:
git log --oneline # 列出全部的 commits
git log --oneline | head -n 5 # 列出最近5個 commits
Learnings$ git log --oneline | head -n 5e4fea6a [new/make] syntax: value script and sorted filter out
509768f [new/make] example syntax to filter duplicated item by...
289b59d [fix/java] revise code to build on osx with android studio
a37b0fe [new/jni] example build script
336fce5 [new/py] create image file using pillow
沒有留言:
張貼留言