Skip to content

Commit fbbfe07

Browse files
Updating g.add doc
1 parent 7905a84 commit fbbfe07

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,11 @@ And here are the operations that will need to write to your git repository.
140140
g.config('user.name', 'Scott Chacon')
141141
g.config('user.email', 'email@email.com')
142142

143-
g.add('.')
144-
g.add([file1, file2])
143+
g.add # git add -- "."
144+
g.add(:all=>true) # git add --all -- "."
145+
g.add('file_path') # git add -- "file_path"
146+
g.add(['file_path_1', 'file_path_2']) # git add -- "file_path_1" "file_path_2"
147+
145148

146149
g.remove('file.txt')
147150
g.remove(['file.txt', 'file2.txt'])

0 commit comments

Comments
 (0)