如何按(最后)作者姓名列出分支過濾器?
例如,我只想通過從以下存盤庫中過濾“yukihane”來main獲取mybranch。
* commit 9315faf698c4f733e96047ffe65a636330a4edc1 (origin/others, others)
| Author: other <[email protected]>
| Date: Tue Apr 19 09:00:50 2022 0900
|
| others
|
| * commit c37b840649c71080eb0705e6800f359a22c1183a (HEAD -> mybranch, origin/mybranch)
|/ Author: yukihane <[email protected]>
| Date: Tue Apr 19 08:54:02 2022 0900
|
| my commit
|
* commit f4e0a4721a066d1777eb7a21efdf0ede3874a4e0 (origin/main, main)
Author: yukihane <[email protected]>
Date: Tue Apr 19 08:53:30 2022 0900
init
uj5u.com熱心網友回復:
git log --branches --no-walk --author=yukihane
uj5u.com熱心網友回復:
這是[檔案]所說的[1]:[1]:https ://git-scm.com/docs/git-log
按作者過濾:
--author= --committer= 將提交輸出限制為具有與指定模式(正則運算式)匹配的作者/提交者標題行的提交輸出。如果有多個 --author=,則選擇其作者與任何給定模式匹配的提交(對于多個 --committer= 類似)。
按分支過濾:
--branches[=] 假裝 refs/heads 中的所有 refs 都在命令列中以 . 如果給出,則將分支限制為與給定 shell glob 匹配的分支。如果模式缺少 ?, , 或 [,則暗示結尾 / 。
其他資源:
- 按作者過濾:如何查看僅包含一個用戶提交的 git 日志?
- 按分支過濾:git log --branches 有效嗎?
--branches盡管現在嘗試了它,但我在選擇按預期作業時遇到了問題。^^^上面的鏈接可能會有所幫助。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/460230.html
標籤:混帐
