Natan Mohart
@natan-linked
GIT & GITHUB
FOR FRONTEND
DEVELOPERS
Natan Mohart
@natan-linked
WHY ARE THEY ESSENTIAL?
Git and GitHub are useful for version
control, collaboration, and project
management.
Git
Helps you track changes to your code and
maintain versions
GitHub
Allows you to store code, collaborate with
teammates, and showcase your projects.
Natan Mohart
@natan-linked
BASIC GIT COMMANDS
git init Initialize a Git repository
git clone <repo_url> Clone a remote
repository to your local system
git add. Stage your changes for commit
git commit -m "message" Commit
changes with a message
git push Push your commits to the
remote repository
Natan Mohart
@natan-linked
GIT BRANCHING
WHY IT’S IMPORTANT?
Allows you to work on different features
without affecting the main codebase
git branch <branch_name>
Create a new branch
git checkout <branch_name>
Switch to a different branch
git merge <branch_name>
Merge your changes into the main branch
(usually main or master)
Natan Mohart
@natan-linked
GITHUB HOISTING
HOSTING & COLLABRATION
Not just a repository, but collabrtion too
Store your code and share
Repositories
it with others
Collaborate with teammates
Pull Requests by reviewing and merging
changes
Track bugs and features
Issues
directly in GitHub
Host your frontend projects
GitHub Pages directly from GitHub
Natan Mohart
@natan-linked
COLLABRTAING (PRS)
Fork a repository
Create your own copy of the project
Create a branch
Work on your feature or bug fix in a
separate branch
Submit a Pull Request
Request a review from team members
before merging
Review and Merge
Review the PR, make suggestions, and
merge when ready
Did you find it
Useful?
Leave a comment
and repost!
Natan Mohart
@natan-linked
Let’s Connect