title: what"s the difference between git commit <file> and git commit --only?
body: <p><a href="https://i.stack.imgur.com/6irdu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6irdu.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/nsBtj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nsBtj.jpg" alt="enter image description here"></a></p>
  
  <p>It seems that the two options function the same way.</p>
  
  <p>Maybe there is a difference between them which I can't see, cause of my poor English reading skills.</p>
  
  <p>Could you tell me the truth?</p>