Beginner Git commands you need to know (WITH EXAMPLES)

preview_player
Показать описание
Take your Git skills to the next level with this beginner-friendly guide to the most essential Git commands. From configuring your Git environment to creating repositories and managing branches, this video will walk you through the daily commands you'll use. Learn how to efficiently stage, commit, and push your changes, and discover the power of commands like git status and git switch. By the end of this tutorial, you'll be using Git like a pro!

#Git #Coding #GitHub

— CHAPTERS —
00:00 Intro
00:21 Configuring Git with 'git config'
01:49 Initializing a Git Repository with 'git init'
02:14 Checking Repository Status with 'git status'
02:43 Creating and Staging Files with 'git add'
03:55 Committing Changes with 'git commit'
05:43 Cloning a Repository with 'git clone'
06:55 Working with Branches using 'git branch'
07:44 Switching Between Branches with 'git switch'
08:51 Pushing Changes to a Remote Repository with 'git push'
10:41 Updating Local Repository with 'git pull'
12:13 Viewing Change History with 'git show'
13:54 Deleting Branches Locally and Remotely

Resources & links:

Stay up-to-date on all things GitHub by connecting with us:

About GitHub
Рекомендации по теме
Комментарии
Автор

You are a teacher.
This is the best git explanation have seen so far.

ayomidewilfred
Автор

Cool video, but I think it would be helpful to highlight the buttons/commands when you are talking about them. Also, which terminal/theme are you using? - looks nice.

Gnajs
Автор

I love this series, clear and straightforward

the_alquemist
Автор

Thank you so much for this video! Please help clarify my understanding of the relationship between
"git commit -m update app name" and "git checkout -b update-name"

In my understanding, "git checkout -b update-name" was you creating a new branch. However, after the changes were made and you used "git commit -m update app name" to commit.

I thought we were going to use "git commit "update-name" as the command to push. What am I missing?

Thank you in advance

edwinlloydniiodarteyevans
Автор

Wonderful walkthrough to get going with git! How do one get the same skin for the terminal that you use that shows the current brach?

EmilJohansson-vt
Автор

what happens with your local branch ? can you "push/pull" branch locally into your "main" ?

alexpulido
Автор

can you change your local "main" files and push a copy without a "branch" ?

alexpulido
Автор

Thank you for explanation - very usefull.
i use github only with master branch because i work alone on my stuff.

One thing isn't so clear to me after watching this vid about deleting a brach:
Do we have to delete it twice? first delete on my local repo and second on the github website (is it remote? or is it the master branch) this is confusing... maybe because english not my mother toung? usually i undarstand english very well :)

doriomer
Автор

"I'd love to know how I can ask Python, HTML, CSS, and JavaScript developers to contribute to my project. Is there a feature on your website that allows for such requests?"

PHOENIXMARIE-ty
visit shbcf.ru