Delete everything and upload new version

后端 未结 3 813
悲哀的现实
悲哀的现实 2021-02-04 09:45

We are using git for version control and right now we are getting a lot of warnings when trying to upload the most recent version. I am new to git and don\'t have patience for t

3条回答
  •  执笔经年
    2021-02-04 10:25

    1.) Delete everything in your repository folder

    2.) run git rm * to tell git to remove all files (check with git status whether there are any unstaged files left)

    3.) do a git commit -a -m "commitmessage" a git push origin master to delete all files on the remote git server

    4.) check if you have an empty remote repository now

    5.) copy all new files to the local repository folder

    6.) run git add * to tell git to add all new files (check with git status whether there are any unstaged files left)

    7.) commit and push the new files

    Now you should have the version on your remote git repository.

提交回复
热议问题