Question: Write a python script to automatically submit assignments through git with the follwoing structure. [student]$ ls in_class labs submissions [student]$ cd sudmissions [student submissons]$ ls

Write a python script to automatically submit assignments through git with the follwoing structure.

[student]$ ls

in_class labs submissions

[student]$ cd sudmissions

[student submissons]$ ls

LAB1 LAB2 LAB3 LAB 4

*Your script should: Take in arguments from the command line First argument is the branch name/assignment name The next n arguments are the files to be submitted. Your commit message should say what files you added. "Added E02.txt" "Added L04.txt task2.c task3.c"

Script should run as following example:

Write a python script to automatically submit assignments through git with the

$ . /git_submit.py E02 E02.txt Switching to master branch. . Pulling the latest from master Succesfully branched to E02 Adding the file submissions/E02/E02.txt Committing... Pushing.. - Success! $ ./git_submit.py L04 L04.txt task2.c task3.c Switching to master branch... Pulling the latest from master Succesfully branched to L04 Adding the file submissions/E02/E02.txt Committing... Pushing.. - Success! $ . /git_submit.py E02 E02.txt Switching to master branch. . Pulling the latest from master Succesfully branched to E02 Adding the file submissions/E02/E02.txt Committing... Pushing.. - Success! $ ./git_submit.py L04 L04.txt task2.c task3.c Switching to master branch... Pulling the latest from master Succesfully branched to L04 Adding the file submissions/E02/E02.txt Committing... Pushing.. - Success

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!