December 2018
Beginner
826 pages
22h 54m
English
Here, we're doing a few things.
First, after we've created our foo file with some text in, we add that file:
$ git add README
In this small command, we're actually adding the README file to Git's index.
Anything we stage in this manner is added in the next commit:
$ git commit -m "Adding README to repository."
Here, we're committing (as the name suggests) our added changes to the repository. We also include a message as part of the command (with -m) instead of letting git commit drop us into whatever our default editor is set to (because every commit should have a message, since it prompts you to write one).
Lastly, we pushed our change:
$ git push
In technical terms, we're informing the remote repository (on 192.168.33.11 ...
Read now
Unlock full access