- Storing a version in Git is a two stage process:
- stage
- commit
- It can be done through the command line or through Aptana
- You can locally stage and commit.
- Then these changes can be pushed and pulled into the repository online (currently a public repository)
When using the command line, a comment must be added in the Vim editor:
- Enter Insert Mode by pressing i
- Esc out of insert mode
- press ":wq!" to commit - this writes and quits the editor.
- If you quit without writing then no commit is made.
- If you just write, you must also then quit.
- A comment is essential.
Aptana has a system for denoting the git status for each file:
- An asterix (*) means the file has been changed and not 'gitted'.
- Green means that it has been updated, I think.
- Not quite sure what red means.
- It can take a minute or two to change so be patient.
A repository needs to be created online.
then in the command line:
- git push u
Git Cheat Sheet available at here.
One way to work is to write on what ever computer is being used.
Stage and commit locally.
Then at the end of the day - push the revised draft online.
To recover the work on another computer, pull the changes again.
This should work.
There is more to learn but that's a summary of the notes from yesterday.
No comments:
Post a Comment