How do I push new files to GitHub?

后端 未结 6 881
独厮守ぢ
独厮守ぢ 2020-12-08 22:31

I created a new repository on github.com and then cloned it to my local machine with

git clone https://github.com/usrname/mathematics.git

I

6条回答
  •  春和景丽
    2020-12-08 23:06

    I can give you some information support, but also one concrete solution.

    Here you can find examples of adding new files to your repository, and here is a video tutorial for this.

    Below you can see a list of python packages that work with GitHub found on the developer page of GitHub:

    • PyGithub
    • Pygithub3
    • libsaas
    • github3.py
    • sanction
    • agithub
    • githubpy
    • octohub
    • Github-Flask
    • torngithub

    But also you can push your files with commands in IPython if you need:

    In [1]: import subprocess
    In [2]: print subprocess.check_output('git init', shell=True)
    Initialized empty Git repository in /home/code/.git/
    In [3]: print subprocess.check_output('git add .', shell=True)
    In [4]: print subprocess.check_output('git commit -m "a commit"', shell=True)
    

提交回复
热议问题