From 6692518213481fdfbc8c0493bbfa450bf8081104 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Tue, 26 Jan 2016 13:18:51 -0500 Subject: [PATCH] Adds git-add -p instructions --- pages/common/git-add.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-add.md b/pages/common/git-add.md index dda955346..7b50faa58 100644 --- a/pages/common/git-add.md +++ b/pages/common/git-add.md @@ -4,7 +4,7 @@ - Add a file to the index: -`git add {{PATHSPEC}}` +`git add {{path/to/file}}` - Add all files (tracked and untracked): @@ -17,3 +17,7 @@ - Also add ignored files: `git add -f` + +- Add parts of a file interactively: + +`git add -p {{path/to/file}}`