Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Text book image
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,