zoukankan      html  css  js  c++  java
  • Git push “fatal: Authentication failed ”

    Git push “fatal: Authentication failed ”

    问题原因

    • 之前设置了两步验证
     If you enabled two-factor authentication in your Github account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your Github account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.
    

    解决方法

    • 更新分支
    git remote -v 
    git remote remove origin 
    git remote add origin git@github.com:user/repo.git  
    

    参考资料


    [1].Git push results in “Authentication Failed”

  • 相关阅读:
    响应式布局
    CSS3过渡
    CSS3背景
    CSS渐变
    CSS3选择器
    CSS3
    自定义指令
    键盘修饰符
    过滤器
    v-if与v-show区别
  • 原文地址:https://www.cnblogs.com/OneFri/p/11123584.html
Copyright © 2011-2022 走看看