DEV Community

Cover image for What I have grasped from learning about git
Lisa Mosweta
Lisa Mosweta

Posted on

What I have grasped from learning about git

INTRODUCTION
I have learnt a lot of stuff but to be specific I will just narrow most of the information down.

Forking
So this is the creating of a personal copy of someone else’s repository on GitHub.It is usually useful when you want to contribute to a project without affecting the original repo.

Collaboration
It allows multiple contributors with different roles.
Collaborators can also clone, commit and push each other's code.

Pull Requests
This is a way to propose changes from one repo to another and it is often from a fork to the original repo.
Team members can also changes before merging.

Merge Conflicts
This occurs when changes in two branches conflict and Git can’t merge them automatically.

Code Review
Helps improve code quality, catch bugs, and ensure consistent coding standards.

** GitHub Issues**
Used to track bugs, feature requests, tasks, or enhancements.

Git Commands
There are multiple git commands such as:
git init: Initialize a new Git repo.
git pull: Get latest changes from remote.
git push: Send your changes to the remote repo.
just to name a few.

Pushing Changes to GitHub
After making and committing changes locally and that you are connected to the branch:
You are supposed to use git push origin to send changes to GitHub.
It Ensures that your local work is saved in the remote repository.

Yeah, that is what I have learnt for today.

Top comments (0)