Compulsory Task 1 Follow these steps: ● Create an empty folder called task1_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 task1_project folder called helloWorld.java and write a program that prints out the message “Hello World!” ● Run the git status command again. You should now see that your helloWorld.java file is untracked. ● Enter the git add command followed by helloWorld.java to start tracking your new file. ● Once again, run the git status command. You should now see that your helloWorld.java file is tracked and staged to be committed ● Now that it is tracked, let us change the file helloWorld.java. Change the message printed out by the program to “Git is Awesome!” ● Run git status again. You should see that helloWorld.java 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.
Compulsory Task 1
Follow these steps:
● Create an empty folder called task1_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 task1_project folder called helloWorld.java and
write a program that prints out the message “Hello World!”
● Run the git status command again. You should now see that your
helloWorld.java file is untracked.
● Enter the git add command followed by helloWorld.java to start tracking
your new file.
● Once again, run the git status command. You should now see that your
helloWorld.java file is tracked and staged to be committed
● Now that it is tracked, let us change the file helloWorld.java. Change the
message printed out by the program to “Git is Awesome!”
● Run git status again. You should see that helloWorld.java 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.
![SE L2T07 - Capstone Project I - OX
← → C VIN Ⓒ File
G Google
I
Addons Store
SE L2T09 - Git Basics
Type here to search
SE L2T09 - Git Basics
C:/Users/Dell/Dropbox/DT20070002991/2-%20Introduction%20to%20Software%20Engineering/L2T09/SE%20L2T09%20-%20Git%20Basics....
AliExpress B. Booking.com Facebook ► YouTube
O
X +
Compulsory Task 1
Follow these steps:
.
9 / 11
.
80% + | A
• 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 an empty folder called task1_project
Create a new file in the task1_project folder called helloWorld.java and
write a program that prints out the message "Hello World!"
Run the git status command again. You should now see that your
helloWorld.java file is untracked.
Enter the git add command followed by helloWorld.java to start tracking
your new file.
• Once again, run the git status command. You should now see that your
helloWorld.java file is tracked and staged to be committed
Now that it is tracked, let us change the file helloWorld.java. Change the
message printed out by the program to "Git is Awesome!"
Run git status again. You should see that helloWorld.java 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.
F:
88
15°C
Q
℗ I
4)
08:28
11/29/2022
⠀
X
:
□](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F372ba7c7-2ed8-4285-936e-8247775d2577%2Fb261f813-f811-484e-ab46-0f5b009c744e%2Fsg5u74s_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)