
Welcome to Git and GitHub Course.
Git is a distributed version control tool that can manage a development project's source code history, while GitHub is a cloud based platform built around the Git tool.
The concept of a centralized system is that it works on a Client-Server relationship. The repository is located at one place and provides access to many clients. Whereas, in a Distributed System, every user has a local copy of the repository in addition to the central repo on the server side
Your Feedback is Important for this Git and Github course.
Git simplifies the process of working with other people and makes it easy to collaborate on projects. Team members can work on files and easily merge their changes in with the master branch of the project. This allows multiple people to work on the same files at the same time.
List of Different Advantages of using Git
Here our top list of Git and GitHub references with their definitions so that you can impress the pants off your technical team at your next development WIP.
Explanation of different Git Terms used in the course
Notes and Rules to Follow when using Git and GitHub
Simply visit https://github.com, choose a user name that isn't already taken, provide an email address and a password, and click the big green “Sign up for GitHub” button.
Learn how to create a GitHub repository, and make your very first commit
Create sophisticated formatting for your prose and code on GitHub with simple syntax.
Before you can use Git, you have to install and do some basic configuration changes.
Now that you have downloaded Git, it's time to start using it on Windows.
Install Git on macOS by downloading from git-scm.com/download or using brew install git, Xcode, or binary or source options.
cmder is software package that provides great console experience even on Windows.
Find out how to clone remote repositories from popular sites such as GitHub onto your local system. We will clone over HTTPS, and show you what you get when you clone a project.
Learn how to add files and folders to a project that git will track.
Use the status command with git to find out details about your current project's state. This will help you track your staged and unstaged files, and show you changes that are waiting to be committed.
Add the new files of your project to the staging area.
When working with Git, it is quite common for developers to add all the files to your index in order to prepare them for commit.
However, in some cases, you may want to remove files from the index, in other words, you want to unstage files.
The first thing you should do when you install Git is to set your user name and email address. this lecture will do the email and next will see how we can do it exactly
Now that you have items added to your repository, you will need to commit the changes to your project.
The . git folder contains all the information that is necessary for your project in version control and all the information about commits, remote repository address, etc.
Find out how easy it is to push local changes to a remote repository.
Check the Result of your first push from Git to GitHub on your project.
You can trace changes to lines in a file and discover how parts of the file evolved over
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
Deleting a repository. You can delete any repository or fork if you're either an organization owner or have admin permissions for the repository or fork.
You can invite users to become collaborators to your personal repository.
Edit and update files in your project then push the update to GitHub repository.
All the collaborators on GitHub project can edit files in relation about the permission they have.
The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content
Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username
Git uses a username or user email to associate commits with an identity. This config will be associate with your project repository only.
Git config: list all variables and their default values.
Where system, global and local Windows Git config files are saved
Changes an existing remote repository URL
How to colorize git-status output.
Use a text editor to open and edit your files with Git.
You can configure Git to ignore files you don't want to check in to GitHub.
You can also create a global .gitignore file to define a list of rules for ignoring files in every Git repository on your computer.
Use the git remote rename command to rename an existing remote.
Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username or password at each visit.
After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication.
To configure your GitHub account to use your new (or existing) SSH key, you'll also need to add it to your GitHub account.
After you've set up your SSH key and added it to your GitHub account, you can test your connection.
Find out how to create and initiate a new git repository on your local system.
How to Add a New Remote to your Git Repo that does not have a remote URL yet.
In the code, the origin is your default remote repository name and '-u' flag is upstream, which is equivalent to '-set-upstream.' and the master is the branch, name.upstream is the repository that we have cloned the project.
Push the Change in your local project by using your GitHub Email account and name.
Fork the repo on GitHub, then add your fork repo as a remote to your local cloned copy
Edit The Project to be able to send a Pull Request on the original project
To create a pull request, you need to have made your code changes on a separate branch or forked repository
Approving a pull request with required reviews
Delete a closed pull request from GitHub
A contributor is someone from the outside not on the core development team of the project that wants to contribute some changes to a project
Create and Commit changes to a New branch and send it as a pull request
The only way to open up a pull request for multiple commits is: Isolate them into their own branch. Open the pull requests from there.
You may choose to close a pull request without merging it into the upstream branch.
You can quickly find proposed changes to files project in a pull request details.
Alias creation is a common pattern found in other popular utilities like "bash" shell. Aliases are used to create shorter commands that map to longer commands.
Update your local repository with any change applied into GitHub project
You can create or delete branches directly on Local Project.
Switching Between Branches, Abandoning Local Changes. The git checkout command allows context switching between branches as well as abandoning local changes.
How do I rename a local Git branch
Use your favorite text editor, such as Atom, to make changes to your project, from a new Branch
Go to another branch, then just type in: git branch -D [branch]. The lowercase -d means delete but the -D means “Force a delete no matter what.
Git's distributed nature encourages users to create new branches often and to merge them regularly as a part of the development process.
Push Your Editing from local branch to the remote server
How To Merge Git Branch To Remote
Stash the changes in a dirty working directory away.
The "pull" command is used to download and integrate remote changes.
Drop and Remove a single stashed state
List the stash entries that you currently have.
Like pop, but do not remove the state from the stash list.
Remove a single stash entry from the list of stash entries.
Remove all the stash entries. Note that those entries will then be subject to pruning, and may be impossible to recover
Learn Git and GitHub Through Practical Demonstrations
Git is an essential tool for developers and IT professionals. It helps you track changes, manage project versions, recover previous work, and collaborate with other people without losing control of your code.
GitHub takes this workflow further by providing an online platform for hosting repositories, managing contributions, and collaborating on projects.
In this course, you will learn how to use Git and GitHub through practical, step-by-step demonstrations.
What You Will Learn
1. Understand Git and Version Control
Discover how Git works, why distributed version control matters, and how repositories track changes throughout a project's history.
2. Install and Configure Git
Set up Git on Windows, Linux, and macOS, configure your identity, and prepare your environment for managing projects.
3. Master Essential Git Commands
Create repositories, clone projects, track files, stage changes, commit updates, and synchronize your work with remote repositories.
4. Manage Branches and Merge Changes
Learn how to create, switch, rename, delete, and merge branches while maintaining an organized development workflow.
5. Work with GitHub Repositories
Create repositories, manage project files, configure access, invite collaborators, and synchronize changes between your computer and GitHub.
6. Collaborate Through Pull Requests
Understand how forking, branching, pull requests, reviewing changes, and merging contributions work in collaborative development.
7. Use SSH and Advanced Git Features
Configure SSH authentication, manage Git settings, work with aliases, and use Git stash to manage temporary changes.
Who Should Take This Course?
This course is suitable for beginners, developers, programmers, IT professionals, and system administrators who want to understand version control and work confidently with Git and GitHub.
You don't need previous Git experience. We start with the fundamentals and progressively introduce practical workflows.
Start Building Your Git and GitHub Skills
Whether you're managing personal projects, working with a development team, or preparing for a career in software development, understanding Git and GitHub is an important professional skill.
Join the course and start managing your projects with confidence.