Lyrics


< More and better />


git遇到的问题及其解决办法

  • git push origin master

    $ git push origin master
    To git@github.com:Lyrics1/Management-system.git
     ! [rejected]        master -> master (fetch first)
    error: failed to push some refs to 'git@github.com:Lyrics1/Management-system.git'
    hint: Updates were rejected because the remote contains work that you do
    hint: not have locally. This is usually caused by another repository pushing
    hint: to the same ref. You may want to first integrate the remote changes
    hint: (e.g., 'git pull ...') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决办法:$ git push origin master –force

然后进行 推送

  • git add TTMS

    $ git add TTMS
    fatal: Unable to create 'D:/网页制作软件/Git/web/.git/index.lock': File exists.

    If no other git process is currently running, this probably means a
    git process crashed in this repository earlier. Make sure no other git
    process is running and remove the file manually to continue.

解决办法:$ rm -f ./.git/index.lock

然后 git add TTMS

github 如何删除一个文件夹

1.在你的本地目录下手动删除你要删除的东西
2.在客户端输入:git commit -a -m “A file was deleted”
3.在客户端:git push
4.在客户端输入你的用户名和密码

教程
ERROR SAVE