Adding more commits
Simple changes
# Print a greeting to the user
print("Hello, World!")$ git add hello.py
$ git commit -m "Added a comment"
# [main c5ac38c] Added a comment
# 1 file changed, 1 insertion(+)Adding new files
GREETING = "Hello, World!"import data
# Print a greeting to the user
print(data.GREETING)$ git status
# On branch main
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git restore <file>..." to discard changes in working directory)
# modified: hello.py
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
# data.py
#
# no changes added to commit (use "git add" and/or "git commit -a")Ignoring files
Last updated