如何在Windows上安装Git大文件存储?

时间:2015-08-01 02:56:45

标签: git github large-file-support git-lfs

根据其doc,双击应该足够了。但是当我打开git bash并运行git lfs init时,它不起作用:

$ git lfs init
git: 'lfs' is not a git command. See 'git --help'.

1 个答案:

答案 0 :(得分:7)

“git lfs”不是git命令的唯一原因是因为string host = Dns.GetHostName(); IPHostEntry ip = Dns.GetHostEntry(host); Console.WriteLine(ip.AddressList[0].ToString()); 尚未放入public void run() { long lastTime = System.nanoTime(); double amountOfTicks = 60.0; double ns = 1000000000 / amountOfTicks; double delta = 0; long timer = System.currentTimeMillis(); int frames = 0; while (running) { long now = System.nanoTime(); delta += (now - lastTime) / ns; lastTime = now; while (delta >= 1) { tick(); delta--; } if (running) { render(); frames++; if (System.currentTimeMillis() - timer > 1000) { timer += 1000; System.out.println("FPS: " + frames); frames = 0; } } stop(); } } private void tick() { } private void render() { BufferStrategy bs = this.getBufferStrategy(); if (bs == null) { this.createBufferStrtegy(3); return; } Graphics g = bs.getDrawGraphics(); g.dispose(); bs.show(); }

这就是git-lfs.exe应该穿的。

%PATH%

所以:

  • 确保install.bat已成功执行
  • 检查“git-lfs-windows-amd64-0.5.3\install.bat
  • 的内容
  • 确保打开新的CMD Windows
  • 检查您的set GIT_LFS_BIN_PATH="%LOCALAPPDATA%\GitLFS\bin" IF EXIST %GIT_LFS_BIN_PATH% GOTO DIRECTORY_EXISTS mkdir %GIT_LFS_BIN_PATH% set "path=%PATH%;%GIT_LFS_BIN_PATH:"=%" 环境变量