I know you can use the URL github.com/<username>/<project_name>/new/<branch_name>/<path_to_create_file>
to create a new file at a given path of a project.
Is there a way to do the same but from the URL specify the name of the new file?
So hitting something like the below in the browser:
http://github.com/Pithikos/C-Thread-Pool/new/master/tests/newtest.py
Would get me to Github's online editor and I would be able to start typing for newtest.py
.
Answer: Yes.
You can set the parameter filename
in the URL. You can even add some content to the new file. For instance, to create a new file called newtest.py
with default value PUT YOUR CODE HERE
, use the following URL:
https://github.com/Pithikos/C-Thread-Pool/new/master/tests?filename=newfile.py&value=PUT%20YOUR%20CODE%20HERE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With