Imagine you are developing a Flask app. In your project repository you have several files, including:
Three Python source files (for example,
app.py,routes.py,config.py);A
Dockerfile(used for containerization);A
README.mdfile with the project description.
Your tasks are:
Initialize a new Git repository;
First, add only the three Python source files to the staging area and commit them with the commit message "Initial commit". (Do not add the
DockerfileandREADME.mdfiles);Then the
README.mdfile and commit it with the commit message "Add README". (Do not add theDockerfile)
Write your Git command(s) line by line.