→Task 2: Create a project and make a pull request on GitHub
'''Introduction to git, github.com, and Python'''
= Lab Objectives =
:* Using the "git clone" command to clone a repository into a new directory
= Overview =
:In this lab, you will create an account on github.com and follow the Github "Hello World guide" to create a new public repository on github to and explore the basic workflow of using github to track and manage revisions of software or other contents. The essential operations provided by Github includes:*creating new repository, :*creating a new branch, :*making changes to files, :*creating a pull request, and :*opening and merging a pull request. :You will then use the git client (git clone) on matrix.senecacollege.ca to access and download the contents of the repository you created on github. Note: if you have your own Linux VM ready, you can also install and use the git client on your VM.:You will also use the git client on matrix.senecacollege.ca to clone the repository on github.com which hosts the Python scripts for lab 1. :
Study and execute the Python scripts downloaded from the lab 1 repository
:* Open a pull request, and
:* Merge your pull request
: Please make the following changes when following the guide::* name the new repository using your Seneca user name instead of "hello-world".
:* add your full name, and OPS435 section to the README file, do not post any other personal information there.
:* run the following two commands and capture their output to the named files:
git log > gitlog.txt
tree -a > repo_tree.txt
:* Make sure that gitlog.txt and repo_tree.txt are not empty. Review and study the contents of gitlog.txt and repo_tree.txt
= Investigation 2 - Python on Matrix =
:* You can access the Python Interpreter on Matrix from a Linux machine or a Windows 10 machine.
=== Login to matrix.senecacollege.ca from a CentOS 7 machine ===
:* To login to matrix.senecacollege.ca
must must have a active Seneca user account.
:* The following is a screen shot showing the login from a CentOS Linux (host or vm) system with an active Seneca user name: <br /><br />[[image:centos_ssh.png|Ssh to matrix from Linux]]
=== Login to matrix.senecacollege.ca from a Windows 10 machine ===
:* Login to matrix.senecacollege.ca with your Seneca user name from Windows 10's run box.<br /><br />[[image:window10_ssh.png|ssh to matrix from Windows 10]]
:** <source>python3 sample.py 2>/dev/null</source>
:** <source>python3 sample.py test 2>/dev/null </source>
= Investigation 3 - exploring and using Python's built-in functions =
=LAB 1 SIGN-OFF Upload the following files individually to Blackboard=
* gitlog.txt : contains the output of the command "git log" from Task 3: * repo_tree.txt: contains the output of the command " tree - a" from Task 3: * lab1_check.txt: contains the output of the command " python3 ./ checkLab1.py -f -v"
= Lab Review =
:# What is the name of the definitive branch in a git repository?
:# What is a "pull request" related to a branch in a git repository?