Anonymous

Git: Difference between revisions

From London Hackspace Wiki
36 bytes removed ,  26 February 2011
m
Line 56: Line 56:
  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 the comment after -m to the change to make it easy to see what changes you made 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 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.


You should then check your commit history using:
You should then check your commit history using:


  git log
  git log


== Pushing ==
== Pushing ==
3,313

edits