File tree Expand file treeCollapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Creating a Blob Object
9
9
----------------------
10
10
11
11
One of the really cool (and under used, it seems) parts of the GitHub API
12
- involves the ability to create commit and blob objects.
12
+ involves the ability to create blob objects.
13
13
14
14
.. code-block :: python
15
15
Original file line number Diff line number Diff line change @@ -121,6 +121,13 @@ Creating a new repository
121
121
if r:
122
122
print("Created {0} successfully.".format(r.name))
123
123
124
+ Create a commit to change an existing file
125
+ ------------------------------------------
126
+
127
+ ::
128
+
129
+ repo.contents('/README.md').update('commit message', 'file content'.encode('utf-8'))
130
+
124
131
Follow another user on GitHub
125
132
-----------------------------
126
133
You can’t perform that action at this time.
0 commit comments