Adding and committing code

Now that our repository is initialized, we can add files and directories to our Git repository using the following commands:

git add abq_data_entry
git add abq_data_entry.py
git add docs
git add README.rst

At this point, our files are staged, but not yet committed to the repository. You can check the status of your repository and the files in it at any time by entering git status.

You should get the following output:

On branch master No commits yet Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: README.rst new file: abq_data_entry.py new file: abq_data_entry/__init__.py new file: abq_data_entry/application.py new file: abq_data_entry/models.py new file: abq_data_entry/views.py new ...

Get Python GUI Programming with Tkinter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.