
Git enables developers to work side by side using local and remote repositories; a local repository stays on your machine, while GitHub hosts the remote copy.
Discover the git local workflow, from initializing a folder and adding files to the staging area, to committing snapshots and pushing changes to a remote repository like GitHub.
Learn to use the command line to create directories and files, navigate directories, delete items, and initialize a local Git repository, laying the groundwork for Git and GitHub workflows.
Learn how to list branches, create and switch branches, merge changes from a branch into master, and delete branches, using master and red branch examples.
Create and manage front end and back end branches using git, switching from the master branch and verifying work with status, to organize project development.
Compare git fetch and git pull to learn how changes move from GitHub to your local repository; fetch downloads without merging, while pull downloads and merges.
Clone a GitHub repository to your local computer and rename the destination folder. See how a folder name affects the clone, and what files like readme and .gitignore appear inside.
Push changes from a local front end branch to GitHub, set the upstream to origin, and verify the new front end branch alongside master.
Delete a tag on GitHub by removing it locally with git tag -d <tag> and then deleting the remote tag with git push origin :<tag>, ensuring removal from both repos.
Explore the issues tab, review a fixed issue on the index page, and close the issue on GitHub with comments.
Explore GitHub gist, a feature for sharing single files or code snippets with others, and forking, cloning, embedding, or commenting on public or secret gists.
Learn how to download and install Visual Studio Code across Windows, macOS, and Linux, and see how the editor helps simplify coding tasks within this section.
Merge changes across master, front end, and back end branches in VS Code, stage and commit updates, and switch branches with the command palette for conflict handling in next lecture.
Learn to resolve merge conflicts in Visual Studio Code by comparing changes from the master and front end branches, choosing accept options, and commenting the resolution before committing changes.
In this course, you would learn Git and GitHub from beginner to advanced levels using a practical approach. I have tried as much as possible to make the course simple, easy to understand and beginner-friendly.
Now, what is the importance of learning git and GitHub?
If you are a developer or a software engineer and you hope to work either as a freelancer or in a software development company, then the knowledge of Git and GitHub is a MUST. This is because git is the version control system that helps you track and manage changes on a project while you collaborate with other developers. It also helps you participate and contribute to open source projects of potential employers.
But even if you don't work in a software development company, git and GitHub would still help you manage version control in your private project and this is a good enough reason to learn Git and GitHub.
Course Approach
In this course we begin by learning the basics of git and then together, we create a project that is uploaded to GitHub. we then go into some advanced concepts.
The course is organized to cover the following
1. Basics of the command line.
2. Basics of Git
3. Practicing Git
4. Some advanced Git concepts
5. GitHub
5. Using Git in Visual Studio Code.
But what is Git?
Git is an Open Source Distributed Version Control System that help developer manage changes to a project over time.
Let's break down the keywords in the git definition above.
Git is free to download and install and you can create a GitHub account for free also.
Control System: This basically means that Git is a content tracker. So Git can be used to store content — it is mostly used to store code due to the other features it provides.
Version Control System: The code which is stored in Git keeps changing as more code is added. Also, many developers can add code in parallel. So Version Control System helps in handling this by maintaining a history of what changes have happened.
Distributed Version Control System: Git has a remote repository which is stored in a server and a local repository which is stored in the computer of each developer. This means that the code is not just stored in a central server, but the full copy of the code is present in all the developers’ computers. Git is a Distributed Version Control System since the code is present in every developer’s computer.
What is GitHub?
GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. To get started with GitHub, you simply need to create a free GitHub account.
By the end of this course, you would be comfortable using Git and GitHub.