Git & Github Basics: Digital Media I
Git & Github Basics: Digital Media I
Basics
Digital Media I
Objectives
git --version
Download the latest version of Git on the
official website.
https://git-scm.com/downloads
Create a repository
02 You can click on the + symbol on the top right corner of the page
then choose "New repository". Give your repo a name then scroll
down and click on "Create repository".
To merge the new state to the main branch, you have to first
stage and commit this branch.
After committing your test branch, switch back to the main
branch by running this command: git checkout main.
How to Use Branches in Git Cont.
Did you notice that we did not add -b ? This is because we
are not creating a new branch but rather switching to an
existing one.
You can check all the branches that exist in your repo by
running the git branch command.