DEV Community

Nia McCash
Nia McCash

Posted on • Updated on

Handy Git Commands for Working with Git/GitHub - Learned via Hacktoberfest

Here are 2 handy git commands I learned, thanks to Hacktoberfest 2020, and am bookmarking for myself via this post. Perhaps these will also be helpful to some of you.

How to configure an individual repository to use a specific user/email address

For example, you may want to do this if you are working on a corporate laptop or on a computer where the global configurations are for your company's account, and you want to use a personal account for your Hacktoberfest participation.

How to update a forked GitHub repository

If you forked a repository (repo), made some changes, submitted your pull request (PR), had your PR accepted and merged (congratulations!🎉), then your forked repo may now be out-of-date. If you want to continue to contribute to the same project over time, you will want to update your forked copy of the repo.

Top comments (0)