Complete Git and GitHub Tutorial



Complete Git and GitHub Tutorial

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

Try it hands on, make a PR here: https://github.com/kunal-kushwaha/commclassroomOP
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: http://kunalkushwaha.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

Comments are closed.