| git_add {git4r} | R Documentation |
Git Add
Description
Prints all changed files since last commit and waits for you to hit ENTER to add everything, or type out the space-separated numbers of what you do want to add to the next commit, else ESCAPE to cancel.
Usage
git_add()
Details
Files can are selected by number by typing a list of space-separated values. The inverse can also be used, for example "-2 -4" would add all except the 2nd and 4th file.
Each file or directory is given a symbol for change type:
-
-has been deleted -
+has been created -
*has been changed sincegit_add()was last called and should be re-added -
@has been renamed, but this will often show as a pair of+and- -
?contains conflict from latest merge; go in and edit by hand, searching for "<<<<<<< HEAD" up to ">>>>>>> (some branch)"
For any file which has been flagged by git_pull() or git_merge() as containing
conflicts, these are not included by hitting ENTER and must be added by number.
This is to reduce the risk of accidentally committing a whole load of conflicts.
Each file should be inspected manually before adding.
Value
Invisible NULL