"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Git remote branches

Git remote branches

Published on 2024-11-08
Browse:428

Git remote branches

This week we had to add a feature to another person's repository. To be specific, we were required to add a default configuration TOML file inside of user's $HOME folder, that contains default parameters for a CLI tool. I have contributed to readMeMaker repository:
https://github.com/jadorotan/readMeMaker.git

Jadorotan's code was located all in one file, so it was pretty simple to work with it. I just had to install a library called tomli and add a function which reads default configuration file, if it is provided. All the changes were inside of approximately 10 lines of code.

I have switched to wsl completely for my development and work. I've had problems with interacting with Debian shell. To be exact, I had troubles managing user permissions and for some reason in the commit history of Jadorotan's pull request you can see how the user who committed is not SychAndrii, but root user, which is my Debian user.

Thanks to professor Humphrey's lectures, I have completely understood what branches are - just names for commits that move forward over time. I had no troubles switching between remote and local branches and merging changes from feature branch to main branch.

Having completed this lab, I have learned about how to manage many git remotes (not just origin).

Release Statement This article is reproduced at: https://dev.to/sych_andrii/git-remote-branches-4eie?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3