How can I remove all files in my git repo and update/push from my local git repo?

后端 未结 14 2044
猫巷女王i
猫巷女王i 2021-01-29 20:20

Is it possible to remove all files in a repository and update it with only the files I have in my local machine? The reason is that, there are certain files that is not necessar

14条回答
  •  粉色の甜心
    2021-01-29 20:59

    Delete all elements in repository:

     git rm -r * -f -q
    

    then:

     git commit -m 'Delete all the stuff'
    

    then:

     git push -u origin master
    

    then:

     Username for : "Your Username" 
     Password for : "Your Password"
    

提交回复
热议问题