GitBash關於使用Git查看當前狀態的操作
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/1014
先寫一部分,待會兒補充。
git log
可以看到你做過的git commit -m "Initial commit"。
git status
可以看到當前的變更。
git tag
可以列出所有標簽。
git commit --amend
只會修改最近一次提交的描述,如果你需要修改更早的提交,需要使用交互式 rebase(例如 git rebase -i),這樣操作會更複雜。
→上一篇:GitBash關於Branch的操作
→下一篇:GitBash關於FETCH的操作
→返回目錄:GitBash使用手冊
This article was last edited at 2024-07-06 20:17:49