Complete Git and GitHub Tutorial
This tutorial will help you with using Git & GitHub for your personal projects and contributing to Open Source, with no prerequisites, in an easy to understand language.
It starts from the very basics of Git & GitHub, covering all the essential commands, including concepts such as branching, pull requests, forking, etc. We also cover other concepts such as squashing, resolving merge conflicts, keeping your code in sync, and more.
NOTE:
– Windows users can use git bash, all the commands will work.
– When using git for the first time, set the global configs using the commands:
$ git config –global user.name “your_name”
$ git config –global user.email your_email
Git/GitHub cheat sheet: https://education.github.com/git-cheat-sheet-education.pdf
Download Git: https://git-scm.com/downloads
Complete Java DSA playlist: https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
Code & notes for DSA lectures: https://github.com/kunal-kushwaha/DSA-Bootcamp-Java
➡️ Connect with me: https://www.techwithkunal.com
=========================================
Timestamps:
0:00 Introduction
0:25 What is Git and Github?
3:45 Why are we using Git and Github?
5:15 Downloading Git
6:00 Structure of the Tutorial
6:18 Some basic Linux commands
8:22 Initializing a Git Repository
9:48 Making the first change
13:43 Staging the first change
14:40 Commiting the first change
16:12 Adding data to files
17:24 Removing changes from stage
18:14 Viewing the overall history of the project
18:52 Making few more commits
19:31 Removing a commit from the history of a project
21:35 Stashing changes
24:25 Popping Stash
25:00 Clearing Stash
25:26 Starting Github
26:10 Creating a new repository on Github
26:40 Connecting Remote Repository to Local Repository
28:05 Pushing local changes to remote repository
28:43 What are branches?
31:10 Use of branches
32:42 Making a new branch and switching to it (Learn Git Branching)
34:28 Merging branch to main (Learn Git Branching)
36:00 Pushing new changes to master branch
37:10 Working with Existing Projects
37:38 Why Fork and How to Fork?
39:00 Cloning the forked project to local
40:10 What is Upstream and adding it to local
41:00 What is a Pull Request?
45:28 Never commit on main branch & creating our first pull request
51:04 Removing a commit from the pull request by force pushing to it
52:56 Merging a Pull Request
53:28 Making forked project even with main project
59:46 Instructions on how to try doing these on your own
1:00:20 Squashing commits
1:01:59 Using the Rebase command
1:04:35 Using the hard flag to reset
1:05:11 Merge conflicts and how to resolve them?
1:11:00 What to do next?
#git #github
by Kunal Kushwaha
linux download
DSA + interview preparation playlist: https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
All the people who disliked this video
Probably had a below Average IQ to understand such a perfect video
12:16
'vi' is not recognized as an internal or external command,
operable program or batch file.
34:59
Do I need to watch any other video to watch for git after watching this?
16:49 to save "vi file" esc shift : wq
bro at 23 you give touch surnames.txt and git add . and enter,, for you it is renamed,, for me it was created new file why
the best git tutorial in the world, Your are a Genius in breaking down the complex things
bro ur explanation skills are so great and i prefer to learn from u instead of other same popu0lar content providers
Hey, I am making a career change to SRE. I am doing your bootcamp for Devops.. If I missing out anything please reply.
09:05 Git is a version control system that allows us to save the history of our project and collaborate with others
18:10 Git status command helps to track changes that are not saved in the history of the project
27:15 Learn how to modify files, view project history, remove commits, and use git stash and git stash pop commands.
36:20 Branching allows you to work on new features or bug fixes without affecting the main branch.
45:25 Forking a project allows you to make changes without directly modifying the original project.
54:30 Always create new branches and pull requests for new features or bugs to avoid code mixing and make code review easier.
1:03:35 Keeping your branch in sync with the main branch of upstream
1:12:40 Merging Codes and Resolving Merge Conflicts
How to get that cmd auto complete ?
12:14
The best git tutorial on youtube right now.
6:08 where does that folder come from on the right side?? Windows 10
🧠👀✍
45:20
the commands of linux how do i execute it , i have windows
for me, You're the best
23:59, the sexual tension between him and us👀
Loved this session
that guests analogy is extraordinary 🤌🤌🤌🤌
32.43
Sir you are the only one who made me understand the entire git and GitHub only in hour …I was stuck in an endless loop but one of my friend told me about this video and I am really thankful to him and you as well …thanku very much sir
please create video for window users, many commands are not working
j
why you dont teach in hindi
great video! I was having some trouble when the password authentication was not working in the push comamand, so I looked it up learn about tokens and got one of them then later when I try to use the same token it gave the same password error. Can somebody explain what should I do? get a new token every time I `push`?
ps:: this is my first time on github ever so I learned lots from this video
His tada… and smile is so cute 🙂
Words can't express how grateful I'm sir..thank you so much…ur explanation was lit✨
I understand everything except git reset. Why is it that if you reset to a previous commit, the files are not back in the directory? Instead, they are shown as untracked files and " deleted: " with red text. The video also didn't explain why it says "renamed" when you `touch` or create a new file, and why the names.txt file appears when you stash the surnames.txt and houses.txt files.
The `git reset` command is a very useful syntax because it allows you to time travel and undo changes. That's why I'm trying to understand how it works in more detail since it is very much super power.
this was amazing tutorial .
Tada!!
5:38