Git: Difference between revisions

From London Hackspace Wiki

12 bytes removed ,  26 February 2011
m
Line 60: Line 60:
  git commit -m "A useful, but short, message on the changes"
  git commit -m "A useful, but short, message on the changes"


This actually commits these changes, and attaches your message to explain what your changes do at a glance. If you want to make a longer message, leave out -m, and you will be given a file in <code>vi</code> to edit.
This actually saves your changes, and attaches the message to explain what they do at a glance. If you want to make a longer message, leave out -m, and you will be given a file in <code>vi</code> to edit.


You should then check your commit history using:
You should then check your commit history using:
3,313

edits