# Git - a version control system

* Git is a distributed version control system widely used for tracking changes in source code during software development.
    

* It's designed to handle projects of all sizes, from small to large-scale, with speed and efficiency.
    

### **Common Git Commands:**

1. **git init**: Initializes a new Git repository in the current directory.
    
2. **git clone \[repository\_url\]**: Clones an existing Git repository from a remote server to your local machine.
    
3. **git add \[file(s)\]**: Adds file(s) to the staging area for the next commit.
    
4. **git commit -m "Commit message"**: Commits staged changes to the local repository with a descriptive message.
    
5. **git status**: Displays the current state of the working directory and the staging area.
    
6. **git diff**: Shows the differences between the working directory and the staging area.
    
7. **git log**: Displays the commit history of the repository.
    
8. **git branch**: Lists all branches in the repository.
    
9. **git checkout \[branch\_name\]**: Switches to the specified branch.
    
10. **git merge \[branch\_name\]**: Merges changes from the specified branch into the current branch.
    
11. **git pull**: Fetches changes from the remote repository and merges them into the current branch.
    
12. **git push**: Pushes local commits to the remote repository.
    
13. **git remote**: Manages connections to remote repositories.
