Git is a powerful distributed version control system created by Linus Torvalds in 2005. It allows developers to track changes, collaborate efficiently, and manage code history with complete confidence.
Every developer has a full copy of the project history, enabling fast branching, merging, and offline work. Git powers modern software development and is the backbone of platforms like GitHub, GitLab, and Bitbucket.
| Basic Git Commands | |
|---|---|
| Command | Description |
git init | Initialize a new Git repository |
git clone | Copy a repository from remote |
git add | Stage changes for commit |
git commit | Save staged changes to repository |
git status | Check current status |
git branch | List, create, or delete branches |
git checkout | Switch branches or restore files |
git merge | Merge branches together |
git pull | Fetch and merge remote changes |
git push | Upload local commits to remote |
git log | View commit history |
git remote | Manage remote repositories |