1、关于windows平台自动换行问题

warning: LF will be replaced by CRLF in readme.txt.
The file will have its original line endings in your working directory.

意思大概是:LF(换行,Line Feed)将会被CRLF(回车换行,CarriageReturn)替代。

                     该文件将在工作目录中具有其原始行尾。

                     报这个警告时是由于文件夹远程不存在,但是不影响提交

解决办法:

$ rm -rf .git  // 删除.git 也可以不用删除!!! 
$ git config --global core.autocrlf false  //禁用自动转换  

2、分支管理常用的命令

查看远端分支情况:
    git branch -r
本地创建dev分支,将分支推到远端master:
    git push origin dev

3、TortoiseGit disconnected no supported authentication问题

TortoiseGit: Disconnected: No supported authentication methods available(server sent: publickey)
因为TortoiseGit和Git的冲突。 改正如下:
1、TortoiseGit -> Settings -> Network 2、将SSH client设置成 Git\bin\usr\ssh.exe 然后,TortoiseGit 就可以正常工作了!

 

相关文章:

  • 2021-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-01-22
  • 2021-07-06
  • 2021-07-06
  • 2022-12-23
  • 2021-04-10
猜你喜欢
  • 2021-10-09
  • 2021-06-13
  • 2021-11-15
  • 2022-12-23
  • 2021-06-30
  • 2022-01-04
  • 2021-11-25
相关资源
相似解决方案