GIT

  1. github could not fetch…..
    зайти в https://github.com/settings/applications#personal-access-tokens
    composer config --global github-oauth.github.com
  2. Git: fatal: LF would be replaced by CRLF
    $ git config --global core.autocrlf false
    $ git config --global core.safecrlf false
  3. Обновить удаленный репозиторий, данная команда удалит все коммиты на удаленном репе и создаст копию локального:
    git push -f origin master
  4. Удалить последний коммит
    git reset --hard HEAD~1
  5. Откатить изменения файла в GIT

    git checkout -- /PHPMailer/*
    git checkout -- /file.js
    git checkout -- /*.js

Добавить комментарий