DEV Community

Michael Brackett
Michael Brackett

Posted on

1

OSD-Lab4

This week for our lab we were tasked with creating an optional flag for a classmate in their link checker program. In addition to this we were also supposed to use git remotes and merge through git commands when someone finished the optional flag on our repo.

The issue that I created you can find here: https://github.com/jongwon-jang/detectURL/issues/7
In addition you can find the branch here: https://github.com/MLJBrackett/detectURL/tree/issue-7

The code was pretty easy, all I did was parse the urls from the ignore.txt file, then compare the two arrays of urls. If a url was in both I removed it from the base URL array. Then ran head requests on the URL array after.

I actually liked the use of git remotes, that being said I haven't really been able to use them that much yet but it seems very useful being able to branch off someone else's fork would is a great thing if you are trying to keep your git repo clean.

One thing that I don't really like is when using the git merge command, it merges all commits into the master. I would much rather prefer if I could -SQUASH those commits into one. Which I found out after the fact was an actual command. The squash command which you can use with the rebase tool allows you to squash a bunch of commits down into one. Which I think makes the commit history look a little cleaner when merging from remote's. So in the future if I have do to something like this again, Ill probably test that feature out.

You can find the commits made to my repo here:
228fff4, 1e21f76, aa43a46

Billboard image

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay