From the course: DevOps with AWS: Tools for Automated Workflows

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Clone, add, commit, push

Clone, add, commit, push

- [Instructor] Now let's add some code to this repository. To do that, I am going to copy all these script files here into this repository. So now if you go back to the command line and check get status, you can see that all these files are here, but these are un-tracked files. And in order to make these trackable by Git, we need to use a command Git add. So we can say Git add, or I can provide like a specific file name, let's say index dot html. Or since I have multiple files and I want to add all these files in one go, I can simply have a dot here. So it will add all the files to my repository. And if we check the Git status again, we can see that yes, these changes are now ready to be committed and to commit that the command is Git commit. And it is always a good practice to give some message with your commit. So we can use hyphen M and then, since I am committing these files for the first time, let's say first commit. So you should always provide some meaningful message here so…

Contents