
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.
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.
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.
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 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 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.
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.
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 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.
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.
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.