a friend of mine and I are trying to set up Git-lfs to work on a project more efficiently.
However, he has a Macbook and since we are by far no professionals in terms of Git, we are getting really annoying errors. We only used the commands: brew git lfs install , git install and sudo git install --system. Maybe we have to add something more to git? Everything is fine on my windows computer, but it seems like UE4 can’t find any git-lfs commands, although it has been installed. I’ve attached an Image with the error messages showing up. I hope you guys can help me out with this.
ok, hopefully they will fix this issue, since Perforce somehow doesn’t work in our local network ^^
I couldn’t find any similar topic, so i thought this would be an uncommon problem.
Thanks, really weird, seems like an environment issue: while in the command line, paths dans other env variables may be set in a way that make it works, while inside UE they are missing.
I should try under Linux, perhaps the issue is the same and so the solution could work
There is one more issue i’ve encountered while using git ue4 with my windows pc (don’t know if this is already reported):
sometimes when i wanted to rename, or delete an object, the git plugin wouldn’t let me.
When i renamed an asset, for example from ball_M to newBall_M, then i would have 2 assets in that folder, one called ball_M and newBall_M.
Assets which i wanted to be deleted couldn’t be deleted, unless i commited them.
Its not the Git plugin fault; the Engine create a “Redirector” (think of a shortcut/a symlink) from the old name/location to it’s new name. This can be useful is someone else is working on a new asset pointing to the old name.
You have to use the command “Fixup redirectors in folder”. Use right click context menu on any folder of the Content Browser.
As I am the sole developer working on the Git Plugin, and have no access to a Mac, it is not going to change soon.
I’ll try on Linux to see if there is the same issue here, so perhaps I could get a better idea of the situation.
We did every single step in the way you descriped it.
Sadly we still get an error message saying: “Source Control: Failed to enable Git source control. You need to install Git and specify a valid path to git executable”.
Process:
We put a file called ue4-git.rtf inside /usr/local/bin/ where git and git-lfs files are stored.
We deleted .rtf from the document, else it wouldn’t be converted into an exec file.
We run chmod +x etc. on the text document, which converted it into a script.
We added the converted script as a Git Path in ue4
Perhaps, the wrapper script does not work well because you saved it in rtf format.
If you are using TextEdit please refer to here and save it as plain text.
And I made a checklist, so please refer to this as well.
Print working directory (in capture it is /Users/shiena)
Print wrapper script (in capture the file name is ue4-git)
Print wrapper script attributes. (-rw-r–r-- is not executable)
Append executable attribute to wrapper script.
One more view wrapper script attributes(-rwxr-xr-x is executable.)
Execute wrapper script with version argument.
Execute git with version argument. (It should be the same result as #6)