Git /
CommitsSo, you have configure your repo, modified some code, and you are now committed to them, ready to enter them in the repo for posterity. First off, check the status of your repo using:
This will list the files which have been changed since you setup your repo. This is a handy way to consider what you have touched on. Next, if you want to see the difference in details:
will list all the difference between the current version of the files and the latest committed ones. Assuming you are happy with how things are (if not, just continue editing the files), the next step is to add the files you want to commit to the repo, using:
where
will save these changes in the repo, after opening your favourite editor for you to type a message that described what this commit has done to the code. For short messages, it is handy to use the Once this is done, you should be able to see a new entry in the log of your repo. |