github committed files don't show up on

前端 未结 2 1438
灰色年华
灰色年华 2020-12-19 15:47

Newb question:

I add a file to my repo (drag it to my repo folder) then in git bash I \"cd\" to my repo and \"git init\", \"git add filename\", \"git commit -m \'com

相关标签:
2条回答
  • 2020-12-19 16:02

    Do I have to push them to the site?

    Yes. Commits are to your local repository first. You need to git push origin master for the commits to be on GitHub.

    0 讨论(0)
  • 2020-12-19 16:04

    You need to push the changes out to your remote on github.

    You've commited the changes to your local repository - but that doesn't automatically push them out to your remote. Try this:

    git push origin master
    
    0 讨论(0)
提交回复
热议问题