
If you are on an Apple Mac, you can try downloading a repository to test if you have git installed
git clone https://github.com/github/gitignore.git
In this video, you will learn to create an account on GitHub, a git software service provider.
In this lecture, you will create your first git repository, through GitHub
Create a GitHub account, initialize a repository named demo, and recognize your cloud-based GitHub repository as the foundation for your project.
Generate an ssh key pair with ssh-keygen -t rsa, supply your email, and save private and public keys in the .ssh directory as id_rsa and id_rsa.pub.
Clone the repository to your computer via the terminal using the clone command. Open a terminal, select a folder, and trust the connection to reveal an empty repository.
Create a readme.md for your repository using markdown, document contents in your sandbox repo, and save it with nano or another text editor.
Add the readme file with git add, commit with a brief message, and push to GitHub; using period stages all files and establishes master as the main branch.
Preview your saved work on GitHub by adding, committing, and pushing changes, then verify the updated read me file in your demo repository on the GitHub server.
Create a new blank file in the git repository, verify the master branch, stage and commit it, then push to GitHub to see the file on the remote.
Edit the blank index page using a text editor, add HTML content and a title, then save and commit your changes to GitHub, and preview the directory to confirm update.
Create three new pages—pink, green, and peach—on the color changes branch and link them from the index, then commit, push, and open a pull request to merge into master.
Create and push a repository on GitHub, add a readme and index.html to master, then create and push a color changes branch with three new files.
Compare branch changes visually by switching between color changes and master, previewing the pink, peach, and green pages, and using git checkout and commits to manage versions.
Practice making changes to local code, create a new colored page in the demo folder, link it across pages, and create a new branch for adding and committing those changes.
Add and commit changes on a new git branch using precise staging. Practice staging all changes with git add ., or target specific files, and write clear commit messages.
Preview local changes on the demo page, then push commits to GitHub with git push -u origin HEAD and verify the blue gray branch appears there.
Create a pull request to merge changes from a branch into the master branch, then merge those changes using the GitHub web UI.
Pull the latest code from the master branch, merge changes, and update local files like blue gray and green index peach after syncing with GitHub.
Use git diff to compare two branches, such as blue gray and color changes, and view additions, deletions, and other changes in files from the terminal.
Share git cheat sheet and interactive learn git branching links, and recommend Culture Code and The Black Swan, while inviting learners to rate and provide feedback.
This course is designed to get you proficient and comfortable with using git in under a day! You will find a focused course on where you'll dive in immediately into using git. While this is not an exhaustive course on git, it does focus on what you are likely to use 70% - 90% of the time. You will be set up for mastery and advanced usage of git if you decide to do so.
This course requirements are minimal. All you'll need is
a laptop
a GitHub Account (free btw),
In Section 1, we cover
git overview - how git works
git install instructions (very simple)
GitHub account creation
rsa key setup for security
creating your first repository
adding and committing files
pushing / saving your files to github
pull requests and merges
git pull (local)
In Section 2, we become Pros!
git add - add and modify files
git commit - commenting your changes
git push - saving to the server
PRs and Merges - bringing it all together
git pull - copying latest changes locally
In Section 03, is our bonus material that is of high value
.gitignore
markdown
git stash and git pop
git diff
removing / deleting files from GitHub
And the best thing of all, this course can be completed in a day, and you can gain proficiency over a weekend! It's that quick and easy!