1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [git add](<https://delaparra-services.nl/knowledge-hub/git-add>)

  

Category: Git commands 

# git add

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is git add?

 

git add: Stage file changes — mark them as ready to be committed. ` git add ` moves changes into the staging area, the set of changes that will go into your next commit. ` git add file.php ` stages one file and ` git add . ` stages everything in the current folder. The staging area lets you choose what belongs together. You might have changed five files, but only three relate to the bug fix. Stage those, commit them, and commit the rest separately.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about git add

  

### What should you keep in mind with git add?

 

` git add -p ` is especially useful. It shows each change in a file and asks whether to stage it, so you can even split changes within one file. Before committing, check ` git status ` or ` git diff --staged ` to see exactly what is included. That catches debug code, local config files and unrelated changes before they end up in history.

 

## At a glance

   CategoryGit commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Git commands terms

 

- [git bisect](<https://delaparra-services.nl/knowledge-hub/git-bisect>) 
- [git branch](<https://delaparra-services.nl/knowledge-hub/git-branch>) 
- [git checkout](<https://delaparra-services.nl/knowledge-hub/git-checkout>) 
- [git cherry-pick](<https://delaparra-services.nl/knowledge-hub/git-cherry-pick>) 
- [git clone](<https://delaparra-services.nl/knowledge-hub/git-clone>) 
- [git commit](<https://delaparra-services.nl/knowledge-hub/git-commit>)

 

[All terms starting with G](<https://delaparra-services.nl/knowledge-hub#letter-g>)

 

## Skills

 

- ### Git Advanced Workflows

 

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

 [View skill](<https://delaparra-services.nl/skills/git-advanced-workflows>) [Download zip](<https://delaparra-services.nl/skills/git-advanced-workflows/download>) 
- ### Using Git Worktrees

 

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

 [View skill](<https://delaparra-services.nl/skills/using-git-worktrees>) [Download zip](<https://delaparra-services.nl/skills/using-git-worktrees/download>) 
- ### Conventional Commit

 

'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'

 [View skill](<https://delaparra-services.nl/skills/conventional-commit>) [Download zip](<https://delaparra-services.nl/skills/conventional-commit/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/git-add/skills.zip>)

 

## Manuals

 

- [Git: branches, rebase and merge conflicts](<https://delaparra-services.nl/manuals/git-branches-rebase-en-merge-conflicten>) 
- [Working with Git](<https://delaparra-services.nl/manuals/werken-met-git>)

 

## Related services

 

- [AI code review](<https://delaparra-services.nl/services#service-05>)

When you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. 
- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)

If you want to use a coding agent, we provide all the infrastructure to help it work efficiently.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/git-add)
