![]() ![]() The first step in getting started with Git is to create a repository. My first thought was, "Wow, gas was cheap 20 years ago!" Given this simple test, I determined that I did have a small, useful code project to use as Git practice. For instance, purchasing 10 gallons of premium gas resulted in: p I wanted to complete a few more tests first by seeing whether the code ran correctly. I began to think about what changes I could make to the code. The fact that it succeeded is a testament to backward compatibility! Lab2Įnter type of gas r-regular p-premium s-super: I was curious to know whether this binary, compiled over 20 years ago, would still execute. Lab2: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-, not stripped I still had both the C source code and the compiled binary. The grade determined the cost per gallon, which was then multiplied by the number of gallons to produce the total purchase cost. The user had to select the fuel grade and number of gallons to purchase. The objective was to code an application that plays the role of a gas station. The files were from an assignment-Lab 2-for my CSC121 class. Once I ran the package manager, a quick check confirmed that Git was now installed: $ git -versionĪt this point, I located my old files and rearranged them into a directory structure that could work well. On Fedora, sudo dnf install git gets the job done. For example, on Ubuntu you can run sudo apt install git to install this tool. ![]() However, it wasn't installed, but this problem is easy to fix using distribution package managers. I started by checking to see if Git was installed, so I tried to run the git command. ![]() Assessing the old codeīefore getting too comfortable with GUI tools and sites like GitHub and GitLab, I wanted to spend time on the command line in order to fully understand how Git works. However, my Git experience was limited to minor usage of Atlassian Bitbucket. I've used older tools, such as CVS and Subversion, and was once an administrator, many years ago, for Borland (now Micro Focus) StarTeam. By doing so I could demonstrate basic Git proficiency. I saved all of this work, so why not use this code to create a practice Git repository? Then, I could run the code and fix any problems, which would let me practice making commits and creating branches. Like many undergraduate computer science students, I've done programming homework and labs. Once I finished reading, it was time to do some actual practice. In an effort to get some practice using Git, I began reading the documentation and some articles here on, particularly Seth Kenlon’s introductions. ![]()
0 Comments
Leave a Reply. |