Introduction
Git is a version control system for tracking changes in source code during software development.
Setup and Configuration
- git config --global user.name "Your Name"
- git config --global user.email "your@email.com"
Basic Commands
| Command | Description |
|---|---|
| git init | Initialize a Git repository |
| git clone [url] | Clone a Git repository |
Branching and Merging
git branch [branch-name]
git checkout [branch-name]
git merge [branch-name]Remote Repositories
Use git remote add [name] [url] to add a remote repository and git push [remote-name] [branch-name] to push changes to the remote repository.