Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 356 Bytes

intent-to-add-a-file.adoc

File metadata and controls

9 lines (5 loc) · 356 Bytes

Intent to add a file

We sometimes want to git diff or git add --patch a new file.

Before being able to do so, you need to indicate git you will add the file later but you need to create an entry right now with the command: git add -N <filename>.

Using prezto aliases: gia -N <filename>.

See https://git-scm.com/docs/git-add for more details.