For this lab we needed to collaborate with another student where we need to remotely work with it using git. The instruction for it was a bit confusing at first, generally what most of git is personally but I eventually can make sense out of it (I hope). Anyways, we needed to add a TOML config file and feature, push it and create pull request but have it reviewed first.
TOML feature
TOML wasn't too hard to figure out how it works, its a config file where you can get variables from like a .env file but more readable. First I needed to check if the TOML config file exist first, if it does then I pull variables from it like the Api. After that its pretty simple. Thiers one cool thing I learned from it is that I can output an error if theirs errors in the TOML config file. Whether its syntax error or missing variables.
Git remote.
This one was a doozy, I generally have trouble dealing with git but I know its something important I need to learn. For this one I need to remotely fetch, review and merge the changes that was made on my project. In theory it shouldn't be too hard, except the steps in doing it can get confusing. Eventually I figured it out by testing it first on a different repo. I'm still not confident enough to do this again with out any issues, so I need to learn how to properly do this.
What I learn from this.
I learned that git is confusing and scary, but important. Being able to review the pull request is an important step, making sure that nothing breaks the project. Being able to do this remotely can make it faster also keep the remote repo safe. I can test merge it locally first and if nothing breaks, I can confidently merge it to main.
Top comments (0)