mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Create git-add.md
This commit is contained in:
parent
6ebbec1377
commit
124d6064b3
1 changed files with 36 additions and 0 deletions
36
pages.ar/common/git-add.md
Normal file
36
pages.ar/common/git-add.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# git add
|
||||
|
||||
> يضيف الملفات المعدلة إلى الفهرس (staging area).
|
||||
> لمزيد من التفاصيل: <https://git-scm.com/docs/git-add>.
|
||||
|
||||
- إضافة ملف إلى الفهرس (staging area):
|
||||
|
||||
`git add {{path/to/file}}`
|
||||
|
||||
- إضافة جميع الملفات (المتتبَّعة وغير المتتبَّعة):
|
||||
|
||||
`git add {{[-A|--all]}}`
|
||||
|
||||
- إضافة جميع الملفات بشكل متكرر بدءًا من المُجَلَّد الحالي:
|
||||
|
||||
`git add .`
|
||||
|
||||
- إضافة الملفات المتتبَّعة فقط:
|
||||
|
||||
`git add {{[-u|--update]}}`
|
||||
|
||||
- إضافة الملفات المتجاهلة أيضًا:
|
||||
|
||||
`git add {{[-f|--force]}}`
|
||||
|
||||
- إضافة أجزاء من الملفات بشكل تفاعلي:
|
||||
|
||||
`git add {{[-p|--patch]}}`
|
||||
|
||||
- إضافة أجزاء من ملف معين بشكل تفاعلي:
|
||||
|
||||
`git add {{[-p|--patch]}} {{path/to/file}}`
|
||||
|
||||
- إضافة ملف بشكل تفاعلي:
|
||||
|
||||
`git add {{[-i|--interactive]}}`
|
Loading…
Add table
Reference in a new issue