tldr/pages.uk/common/git-add.md

33 lines
823 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# git add
> Додає змінені файли до індексу.
> Більше інформації: <https://git-scm.com/docs/git-add>.
- Додає змінені файли до індексу:
`git add {{шлях/до/файлу}}`
- Додає усі файли (контрольовані та неконтрольовані):
`git add -A`
- Додає тільки ті файли, що вже контрольовані:
`git add -u`
- Додає й ті файли, що ігноруються:
`git add -f`
- Інтерактивно індексує частини файлів:
`git add -p`
- Інтерактивно індексує частини вказаного файлу:
`git add -p {{шлях/до/файлу}}`
- Інтерактивно індексує файл:
`git add -i`