Compulsory Task 1 Follow these steps: ● Create an empty folder called git_task_project. ● Open your terminal or command prompt and then change directory (cd) to your newly created folder. ● Enter the git init command to Initialise your new repository. ● Enter the git status command and make a note of what you see. You should have a clean working directory. ● Create a new file in the git_task_project folder called helloWorld.py and write a program that prints out the message “Hello World!” ● Run the git status command again. You should now see that your helloWorld.py file is untracked. ● Enter the git add command followed by helloWorld.py to start tracking your new file. ● Once again, run the git status command. You should now see that your helloWorld.py file is tracked and staged to be committed ● Now that it is tracked, let us change the file helloWorld.py. Change the message printed out by the program to “Git is awesome!” ● Run git status again. You should see that helloWorld.py appears under a section called “Changes not staged for commit”. This means that the file is tracked but has been modified and not yet staged. ● Take a screenshot of this change and title it: git_modified.pdf or git_modified.jpeg. Include it as part of your submission. ● To stage your file, simply run git add again. ● If you run git status again you should see that it is once again staged for your next commit. ● You can now commit your changes by running the git commit -m command. Remember to enter a suitable commit message after the -m switch. ● Running the git status command should show a clean working directory once again. ● Now run the git log command. You should see your commit listed. ● Take a screenshot of the output and add it to the task folder. Name the submitted image file: git_log.pdf or git_log.jpeg.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Compulsory Task 1
Follow these steps:
● Create an empty folder called git_task_project.
● Open your terminal or command prompt and then change directory (cd) to
your newly created folder.
● Enter the git init command to Initialise your new repository.
● Enter the git status command and make a note of what you see. You
should have a clean working directory.
● Create a new file in the git_task_project folder called helloWorld.py and
write a program that prints out the message “Hello World!”
● Run the git status command again. You should now see that your
helloWorld.py file is untracked.
● Enter the git add command followed by helloWorld.py to start tracking
your new file.
● Once again, run the git status command. You should now see that your
helloWorld.py file is tracked and staged to be committed
● Now that it is tracked, let us change the file helloWorld.py. Change the
message printed out by the program to “Git is awesome!”
● Run git status again. You should see that helloWorld.py appears under a
section called “Changes not staged for commit”. This means that the file is
tracked but has been modified and not yet staged.
● Take a screenshot of this change and title it: git_modified.pdf or
git_modified.jpeg. Include it as part of your submission.
● To stage your file, simply run git add again.
● If you run git status again you should see that it is once again staged for
your next commit.
● You can now commit your changes by running the git commit -m
command. Remember to enter a suitable commit message after the -m
switch.
● Running the git status command should show a clean working directory
once again.
● Now run the git log command. You should see your commit listed.
● Take a screenshot of the output and add it to the task folder. Name the
submitted image file: git_log.pdf or git_log.jpeg.

 

 

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education