Git & Github
What is Gihub?
Git vs. GitHub: What's the difference?
Git and GitHub for Beginners
Git basics
Git is a free and open-source version control system, originally created by Linus Torvalds in 2005. Unlike older centralized version control systems such as SVN and CVS, Git is distributed: every developer has the full history of their code repository locally. This makes the initial clone of the repository slower, but subsequent operations such as commit, blame, diff, merge, and log dramatically faster.
Git also has excellent support for branching, merging, and rewriting repository history, which has led to many innovative and powerful workflows and tools. Pull requests are one such popular tool that allows teams to collaborate on Git branches and efficiently review each other's code. Git is the most widely used version control system in the world today and is considered the modern standard for software development.
How Git works
Here is a basic overview of how Git works:
Create a "repository" (project) with a git hosting tool (like Bitbucket)
Copy (or clone) the repository to your local machine
Add a file to your local repo and "commit" (save) the changes
"Push" your changes to your main branch
Make a change to your file with a git hosting tool and commit
"Pull" the changes to your local machine
Create a "branch" (version), make a change, commit the change
Open a "pull request" (propose changes to the main branch)
"Merge" your branch to the main branch
Git Cheatsheet
Everything You Need to Know in One Handy Cheatsheet
Git is a version control system that allows you to track changes to files and folders. It's a powerful tool that can be used for everything from small personal projects to large-scale enterprise applications.
This guide is a quick reference to the most common Git commands. It's not meant to be a comprehensive guide to Git, but rather a quick reference to the most common commands.
Here's the revised git cheatsheet with improved section titles and reorganized:
Setup and Configuration
File Operations
Branching and Merging
Remote Repositories
Commit History
Tags
Stashes
Cherry-Picking
Commit Management
Submodules, Subtrees, and Advanced Submodules
Hooks and Automation, and Diff and Merge Tools
Work with Patches
Collaboration
Bisecting, Debugging, and Performance Issues
Tips and Tricks
Last updated