
Configure your global git identity by setting your user.name and user.email so commits are attributed to you. Verify with git config --global and git config --list.
Use the git help command to get an overview of its functions and common commands. Append a keyword to view the manual, then exit by pressing a key.
Create a directory, enter it with cd, and run git init to establish an empty repository. Use ls -a to reveal the hidden .git folder, the project's history storage.
Discover the lifecycle of files in a git repository: untracked files become tracked when staged, while tracked files move through modified, staged, and unmodified states before committing.
Create a file in the console by using the echo command with a quoted string, redirecting to a file such as readme.md, and confirm the file exists.
Learn to check repository state with git status, identify master as the default branch, and distinguish untracked from staged files as you prepare commits with git add.
Learn to track and stage files with git add, staging readme.md or all changes using the dot wildcard, and confirm the staged state with git status.
Append text to readme.md with echo, then use git status to see the file transition from unmodified to modified to staged, and git add readme.md to update the staged content.
Explore how to view file differences with git diff, inspect changes between staged and modified files, and preview what will be committed using git diff --stage.
Learn to stage changes, commit with a descriptive present-tense message, and save a snapshot of your working directory to your local repository using git commit.
Learn how to remove files with git rm, choose between deleting from the working directory or just from git with --cached, observe automatic staging, and commit the change.
Learn the basic git log usage to view commits, including the commit hash, author, date, and message, with the most recent commit shown first; explore formatting options.
Learn to branch off master, never committing directly to it, create a feature branch, switch to it with git checkout, and understand head pointing to the current branch.
On this branch, create the README file, add and commit it with git commit -m, and understand that HEAD points to the current branch, moving when you switch branches.
Switch to the master branch, merge changes from edit read me into master using git merge, and review logs showing the readme update is integrated.
Learn how merge conflicts arise when teammates edit the same file, and practice resolving them with git merge, choosing changes, and committing the resolved file.
Learn how to delete local branches with git branch -D, verify remaining branches with git branch, and avoid deleting unmerged work to prevent data loss.
Learn to structure a branching workflow with master, development, and feature branches, include hotfixes for production bugs, and use pull requests for merging into develop and master.
Learn how to stash unstaged and staged changes locally, switch branches safely, and apply or pop stashed changes to branches with git stash and git checkout -b, without touching remote.
Learn to discard unwanted changes with git restore, check status, and safely delete branches after ensuring a clean working tree.
Identify untracked, tracked, and ignored files, then create a .gitignore to exclude log files, using a wildcard to match any *.log, commit, and merge into master.
Learn how GitHub, a major host for git repositories, enables team collaboration, and set up an account with a username, email, and password, then verify your email.
Sign into your GitHub profile and access settings from the top-right menu to customize your profile, update your name and bio, and change your profile picture.
Learn to clone repositories with https or ssh, compare authentication methods, and configure an ssh key pair linked to GitHub for passwordless access.
learn how to clone a remote repository using https, initialize a new repository with a readme, and navigate your project directories to verify the clone.
Generate a 4096-bit RSA SSH key pair, saved as id_rsa and id_rsa.pub, copy the public key to GitHub under SSH keys, and clone repos via SSH rather than HTTPS.
Explore how Git creates a default master branch and a default remote named origin. Learn how you can rename them and how pushing to origin updates the remote.
Learn the standard workflow for pushing changes to a remote git repository, including creating and checking out the develop branch, pushing to origin, and verifying the new branch on GitHub.
Learn how to change the default branch from master to develop in your repository, understand the base branch concept, and handle merge requests and releases with caution.
Create a branch off the develop branch to edit README.md, push the branch to origin, and edit the file on GitHub using markdown and preview changes.
Fetch changes from the remote with git fetch, compare with git diff to see what changes will be merged, then merge into your local branch with git merge.
Learn how git pull combines fetch and merge to update your current branch, including editing a readme, committing changes, and verifying with git branch and git log.
Create a pull request from your feature branch to develop, review changes for conflicts, add a concise PR message, and notify teammates when the request is submitted.
Open active pull requests to review discussions and code changes, add comments, finish the review, merge the pull request, and delete the branch after merging.
Push an existing local project to a new empty remote repository on GitHub by initializing a repo, committing changes, adding origin, and pushing with upstream.
Learn how to set the upstream for new branches, use git push -u, and understand how upstream simplifies pushing, pulling, and fetching from origin.
Learning how to use Git is truly a necessity if you want to become a successful software developer. We made this course so that you can focus on what matters and gain the basic practical experience and knowledge to use Git and GitHub effectively. We understand the importance of hands on experience when it comes to learning Git, and this course was created with that in mind.
From the first video, we get your hands dirty in the command line whilst dropping the necessary information you need to know at the appropriate times. Utilizing this teaching style avoids overloading you while on your journey to mastering Git, ensuring that you get practical experience of the newly acquired skills immediately before learning something new.
We first start this course off by setting up some necessary Git configuration before immediately learning about a useful command to help you alongside your journey of mastering Git. We then dive immediately into creating a git repository and become familiar with the following:
Git Commands
Initializing a repository via init
Staging (i.e. adding) files via add
Discarding changes via restore
Project state via status
File differences via diff
Committing changes via commit
Removing files via rm
Viewing commit history via log
Creating and checking out branches via branch and checkout
Merging changes via merge
Stashing changes via stash
Cloning remote repositories via clone
Helpful Git Knowledge
The life cycle of untracked and tracked files
Creating and resolving merge conflicts
Ignoring files with .gitignore
What exactly origin means
Creating a successful branching workflow
GitHub
Creating and editing a profile
SSH vs HTTPS
Creating an SSH Key for authentication
Creating and merging pull requests
Command Line
Creating files via echo
Making (i.e. creating) directories via mkdir
Changing directories via cd
What tilde (i.e. ~) means
By taking this course, you will not only acquire the necessary skills to practically use Git and GitHub, but you will come out more familiar with the command line and know your way around it.