English 中文(简体)
“git:lf is not a gittor” on macOS
原标题:"git: lfs is not a git command" on macOS
LFS git:  lfs  is not a git command. See  git --help .

我在马科索面临这个问题。 <代码>git lf的指挥正在从终端站进行罚款。 但是,当我从一些文字手中接过这一指挥时,我试图找到<条码>lf。 这是我迄今所理解的。

请帮助我确定这一点。

问题回答
  • Homebrew user run
brew install git-lfs
  • MacPorts user run
port install git-lfs

证明安装成功:

$ git lfs install
> Git LFS initialized.

详情请见:https://help.github.com/en/github/managing-large-files/installing-git-large-file-storage

在使用载于<代码>/usr/bin/git的x代码提供git时,以及在安装了从<代码>下载的光盘后,请在<代码>/usr/ local/bin/git-lfs上贴出轨。 您也许需要将<代码>/usr/ local/bin添加到您的PATH,以便其找到。 (我看看不出谁是船员和游艇。)

如果是使用MacPorts或Herbrew的 are,这里有一安装马科斯的装置:

Git Large File Storage
https://git-lfs.com/

  1. Download the correct file and extract
  2. Then run sudo ./install.sh

这恰恰相反。

如果你们需要一个关于如何使用的复习:

# 1)  Setup Git LFS on your system. You only have to do this once per user account:

git lfs install

# 2) Configure the file types or paths to be tracked using

git lfs track "*.bin"

# 3) Then just add the files as usual with git add command

# Tracked files can also be configured manually using the .gitattributes file




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签