How can I upload fresh code at github?

前端 未结 7 1225
孤街浪徒
孤街浪徒 2021-01-29 19:03

I have a directory with all my coding projects.

I want to upload (correct terminology?) it to GitHub using the command line.

I have already looked at Old questi

7条回答
  •  孤独总比滥情好
    2021-01-29 19:34

    If you haven't already created the project in Github, do so on that site. If memory serves, they display a page that tells you exactly how to get your existing code into your new repository. At the risk of oversimplification, though, you'd follow Veeti's instructions, then:

    git remote add [name to use for remote] [private URI] # associate your local repository to the remote
    git push [name of remote] master # push your repository to the remote
    

提交回复
热议问题