Question: Task 1 , under master branchgit a . Open GitBash or VS Code over your personal project folder e . g Lab 3 MyApp b

Task 1, under master branchgit
a. Open GitBash or VS Code over your personal project folder e.g "Lab3MyApp"
b. Add your contacts using [git config - global
user.name 'your name'] and[ git config -
global user.email "your email'] and use "git config -list' command to verify your contact
c. Add a local repository by using 'git init and constantly use 'git status' to check status in
this step and future steps
d. Use command 'touch
ToDoApp.py' to create a java file in project folder
e. Use command 'git add -A' to add all file in the directory to staging phase
f. Use command [git commit -m "put a reasonable message'] to commit the files and use
git log to shows what happened.
g. Copy initial code in appendix 3 to
ToDoApp.py and then repeat step e, f (You may try
command 7 in appendix 1 to combine step e and f, command 7 is very handy)
Task 2, under model branch
a. Use command 'Git Branch model' to create a branch model
b. Use command 'git checkout model' to switch to this branch
c. Uncomment delete_task() method and use Timeline in VS Code to view the difference
d. Repeat Task 1's step ef
e. Use command 'git checkout master' to switch back to master branch
Task 3, under view branch
a. Under Master branch, use 'Git Branch view' to create a branch view
b. Use 'git checkout view' to switch to this branch
c. Uncomment sort_todo_list) method
d. Repeat Task 1's step e,f
e. Use 'git checkout master' to switch back to master branch
Task 4, under controller branch
a. Under Master branch, use 'Git Branch controller' to create a branch viev
b. Use 'git checkout controller' to switch to this branch
c. Uncomment delete_taski() and sort_todo_list() method
d. Repeat Task 1's step e,f
e. Use 'git checkout master' to switch back to master branch
Task 5, Merge branches model, view and controller into master
a. Under Master branch, Use command [git merge model -m "Some message here"] to
merge model branch to master
b. Use command [git merge view -m "Some message here'] to merge view branch to master
c. Use command [git merge controller -m "Some message here'] to merge controller branch
to master
d. Check merged file to clean any conflict then repeat Task 1's step e,f to commit the final
version
e. Run command gitk to show branch graphSDNdfg
 Task 1, under master branchgit a. Open GitBash or VS Code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!