เมื่อgit commitเปิดตัวแก้ไขข้อความจะแสดงสถานะสั้น ๆ สิ่งนี้:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is ahead of 'origin/master' by 26 commits.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Showcase/src/com/gigantt/BorderArea.mxml
# modified: Showcase/src/com/gigantt/Client.mxml
# modified: Showcase/src/com/gigantt/GraphItem.mxml
#
ฉันจะปรับแต่งคอมไพล์เพื่อแสดงความแตกต่างที่จะมุ่งมั่นได้อย่างไร ฉันรู้ว่ามันอาจจะแตกต่างไปนาน แต่ก็ยัง .. มีประโยชน์มาก
git diff --cachedสร้างมันขึ้นมา แต่ทำไมต้องเรียกใช้คำสั่งแยกต่างหากถ้าคุณต้องการทุกครั้ง?