From the course: GitHub for Data Scientists

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Commit in GitHub

Commit in GitHub

- [Instructor] When you are working on a project with others in GitHub, the code you will be changing will be the version on your local machine. For your changes to be reflected in the online repository on GitHub, you will need to commit and push your code. Commit means to track all of the changes that you've made on your local machine within Git. After you commit all of your changes to your local repository, you will push them up to the remote repository on GitHub. In this lesson, I will show you how to commit your changes onto your local machine, and then push them to the remote repository in GitHub. I'm now in Sublime Text editor, where I have added a Python script that prints the words, Hello World. I will now navigate to the terminal to commit my changes to my local repository. You can see that the new file that I've added is in my directory within my repository. To see what changes you've made, you can type git…

Contents