Brief introduction to Git basics: Why and how to use it
Track changes over time.
Facilitates collaboration.
Enables branching for independent development.
Increases security by enabling back-up and redundancy.
Operating system agnostic
Linux
Mac
Windows
sudo apt-get install git).brew install git) or Xcode Command Line Tools.git config --global user.name "Your Name"
git config --global user.email "you@example.com"
HTTPS
SSH
You can also access the contents by the ZIP file
Platforms for Hosting Git Repositories
Others…
Select the option you are willing to work with (HTTPS, SSH, GitHub CLI).
git clone git@github.com:haapaniemi/KVJ.git
Go to github.com and log in to your account (if you don’t have it, sign in).
Create a New Repository
Click the + icon in the top-right corner.
Repository Details
Add a name for your repository,
Add a brief description of your repository.
Visibility
Commit Changes
Record your staged changes with a descriptive message
Share Changes
Check Repository Status
git init - Create an empty Git repository or reinitialize an existing one.
git clone - Clone a repository into a new directory.
git add - Add file contents to the index.
git commit-m "message" - Record changes to the repository with an associated message.
git push - Update remote refs along with associated objects.
git pull - Fetch from and integrate with another repository or a local branch.
git status - Show the working tree status.
git log - Show commit logs.
git branch - List, create, or delete branches.
git checkout - Switch branches or restore working tree files.
git help - Display help information about Git.
Official Git Documentation: git-scm.com/docs
GitHub Git Cheat Sheet: https://training.github.com/downloads/github-git-cheat-sheet.pdf
Try Git Cheat Sheet: https://trygit.js.org/cheatsheet/
Pro Git Book (Free): git-scm.com/book/en/v2
GitHub Guides: guides.github.com, https://git-scm.com/videos