Beginners Guide to Git and Github

Опубликовано: 27 Декабрь 2025
на канале: JakeEh
292
15

In this video I go over how you can use Git for all your coding and non-coding needs! One of the best ways to level-up your programming is by using Git as it allows you to work with other more easily. This is especially true if you are looking for a job in the tech industry as nearly every company that writes software will have some form of source control system - usually Git.

Download Git: https://github.com/git-guides/install...

ssh-agent not running?: https://interworks.com/blog/2021/09/1...

Git Commands:
`git init -b main` - This creates a local repository where the first main branch is called main
`git status` - shows the current status of the git repository
`git commit` - commits the current state of the added contents under the folder to a commit
`git log` - shows the history of the repository
`git branch jakeiscool` - creates the new branch named jakeiscool
`git branch -a` - lists all of the branches
`git checkout jakeiscool` - switches to use the provided branch
`git checkout b jakeiscool` creates a new branch and checks it out at the same time
`git merge subscribe` - merges one branch to the currently checked out branch
`git remote add origin URL` - adds the origin for a remote repository to link your local repository with - like GitHub 🙂
`git remove -v` - lists the current linking you have for remote settings

SSH Commands:

`ssh-keygen -t ed25519 -C "YOUR_EMAIL"` - creates a private and public ssh-key

`ssh-add PATH_TO_PRIVATE_KEY` - adds the private ssh-key to your ssh-agent

`clip LESS_THAN ~/.ssh/PATH_TO_PUBLIC_KEY.pub` - copies the public key contents to your clipboard (so you can paste it) On a mac you can do `cat ~/.ssh/PATH_TO_PUBLIC_KEY | pbcopy` .

LESS_THAN should be the less than sign - I can't add them in the description :)

Join my Discord at   / discord  

Thanks for watching! ❤️

Timestamps:
0:00 Intro
1:22 Basic Git Commands
2:12 git init
2:58 git status
3:42 git add
4:05 git commit
4:52 git log
6:00 git branch jakeiscool
6:10 git branch -a
6:27 git checkout jakeiscool
8:30 git merge
10:00 Merge conflict
13:30 git checkout oldId .
14:15 git restore
14:50 Github remote repo
15:45 Create a project on GitHub
16:42 git remote add origin
17:48 ssh-keygen
19:12 ssh-add
19:45 Copying public key
20:14 Saving public key in GitHub
20:52 git push -u origin main
21:42 git pull
21:51 Outro
Outro
Outro