mohammed-lvw644-IS1003_Lab-02

.pdf

School

University of Texas, San Antonio *

*We aren’t endorsed by this school

Course

1003

Subject

Computer Science

Date

Apr 3, 2024

Type

pdf

Pages

13

Uploaded by BailiffGuanacoMaster519

1 IS-1003-ON1-Spring-2022-Unlocking Cyber Lab 02 Versioning Your Work Author : Fiona Mohammed Course Section : IS-1003-ON1-Spring-2022-Unlocking Cyber Date : March 11, 2022 I NTRODUCTION The objective of this Lab is for me to learn about GitHub, and setup a GitHub account. I will also learn to set up git on my local machine and Sync my local git repository with my online GitHub account. I will learn and understand GitHub, which is a code hosting platform for version control and collaboration. The “git” in GitHub is a free, open -source, and distributed version control system designed to track changes and coordinating work among programmers during software development. Each version provides a snapshot of a system at a particular point in time. Version control is a critical practice for any system, and particularly important with evolving technologies. P ROCESS My GitHub Account with Username: Below is an image of my GitHub Account with Username. The website needed my student ID or an official document from the University in order to verify that I am a current student, before I was allowed to successfully complete setting up my account. (Breakpoint #1 GitHub Account with Username)
2 Definitions of Push, Pull, Fork, Commit, Clone, and Branch: Push: The git push command is a command that is used to add or upload contents in the local repository to a remote repositor. Files and changes will be visible to everyone with permission to the remote repository. Pull: The git pull command fetches and downloads files from the remote repository and then instantly updates the local repository to match that content. Fork: The fork command is an independent copy of repository that can be used as a c opy” to experiment on the project without affecting or messing with the actual project. Commit: The commit command in git is used to save changes to the local repository. Git will not make changes to the project unless you authorize it to. Clone: The clone command is used to create a synchronized linked copy of the online repository to your local machine using git. Branch: Creating a branch generates a new pointer to help you move around. The branch command is used for creating new branches, deleting branches, listing branches, and renaming them. (Breakpoint #2 Definitions of key git commands in my words)
3 Evidence of git configuration with output: Below is evidence of my git configuration with output. I followed the steps on the instruction carefully and watched the video by the instructor, to make sure I set up correctly. I was worried about my email address getting rejected or the configuration having an error since I initially used my personal email address for the setup but needed to provide and add my student email address on GitHub to verify that I am a current student. I was not sure which email to use on the terminal, but it accepted my personal email and successfully configured. (Breakpoint #3 Evidence of git configuration with output)
4 Setting Up a GitHub Repository: Below is an image of my very first repo. I had initially used two words to name it, but realized the instruction stated to use one word, no spaces. It seemed like the interface looked a little di fferent than the instructor’s interface, but I did not run into any challenges, and setting up my new repo was straight forward. I named it myfirstrepo. (Breakpoint #4 My new GitHub repo)
5 Committing my First Git Repo : Below are some images with all the commands/outputs that I used in Committing my First Git Repo. I used the command pwd to verify my path, and ls command to see what is in the directory. I used the cd command to change the directory to my “mohammed folder and verified the contents of this folder by typing the “ls” command again in this directory. I then created a new subfolder/subdirectory under “mohammed” folder with the mkdir command and named it test ”. I deleted the test directory with rmdir command and created another one with the same name as my repo folder and verified it was created, using the ls command. I switched to that directory using the “cd” command, and “ls” to verify it was empty. Next, I created a README File by using a simple echo command, I chose a quote, and redirected it to a README.md file using the redirecting symbol >>. I verified that the README.md file exists by typing ls which printed out the contents of the file and then ca t README.md” command to see my echo text. I initialized the local git repo I created by using the git init “command, I added the file to the staging area by using “git add README.md” command. I used the “git commit - m “first commit”” to verify that the file is Version Controlled, I then changed the name of the branch from master to main using the “git branch - m main” command , and my repo’s main branch automatically converts to main. I used the “git branch” command to verify that it had changed. (Breakpoint #5a My first Repo Commands and Outputs)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help