I am using the latest yocto by git clone it.
I want to use git in yocto OS.
It seems no 'git' recipe in layers.
Is there an 'git' recipe can be use directly ?
There's been support for git on the target for ages.
https://layers.openembedded.org/layerindex/recipe/5542/
Related
I have already installed clio(acumos 3rd version) successfully but I faced some issues in creating pipeline, so I want to upgrade to "demeter" release.
In order to install "demeter" release of acumos, I did
git clone --single-branch --branch demeter https://gerrit.acumos.org/r/system-integration
~/system-integration$ git branch
demeter
~/system-integration$ git status
On branch demeter
Your branch is up to date with 'origin/demeter'.
But the content of environment files suggests it still a clio version code
~/system-integration/AIO/acumos_env.sh
Version of the AIO toolset
export ACUMOS_AIO_VERSION=3.0.3
export PORTAL_BE_IMAGE=$ACUMOS_STAGING/acumos-portal-be:3.0.24
export PORTAL_FE_IMAGE=$ACUMOS_STAGING/acumos-portal-fe:3.0.24
How can I make sure, It installs all demeter related images ?
ex:
nexus3.acumos.org:10002/acumos/acumos-portal-be:4.0.14 4.0.14
in Demeter AIO is deprecated, the new installer is z2a. there is a folder called z2a in system-integration.
I need to install tensorflow_backend.py from a specific tree in keras, ideally without updating the other keras files. This shows how to install a specific repo branch, but how can the same be done for this single file in a tree?
No. pip installs Python packages. You need a different tool to download just one file. For a remote git repository git archive is a good tool. For a remote web interface use curl or wget.
I want to change default Eclipse Git executable location with SourceTree installed embedded Git executable.
But in eclipse where is the configuration to change git path ?
Reason I am doing this is ,Source Tree has latest Git but separate installed version is not latest (As I don't have installation right and Through Source Tree I can update Embedded version easily).
Eclipse uses EGit which relies on JGit (a java implementation of Git).
That is why you don't see a git.exe path to set. (As opposed to SourceTree, which can use an embedded or a "system" Git)
You can only specify a Git path in order for EGit to respect your Git system config.
Eclipse has its own GIT. It relay on the EGIT project .
Source tree other other hand can use internal git or System git.
You can take the git version installed by git and try to replace it (replace the EGIT git.exe)
I recommend reading this answer by #VonC as well
Using native git not jgit in Eclipse git?
I use git lfs to store the large files of my git repo. I then try to build this repo with hosted agents. My build is pretty simple. It has a single task: Execute PowerShell. In the invoked script, the first thing that I want to do is to fetch my lfs dependencies. I therefore have the following in my script:
& git lfs fetch
Unfortunately, my build fails with the following error:
2016-03-04T19:49:05.7021988Z ##[error]git: 'lfs' is not a git command. See 'git --help'.
2016-03-04T19:49:05.7031986Z ##[error]Did you mean this?
2016-03-04T19:49:05.7041987Z ##[error] flow
Since I can't install anything on hosted agents, how am I supposed to have git lfs available?
EDIT
In this issue, I am not talking about git lfs authentication problems as described here. I am strictly talking about the issue of calling git lfs.
Once you are able to call git lfs, look at this answer to solve the authentication problem.
Git LFS is now supported by default on the Hosted Build Controller. But you do need to enable it in your get sources step.
You get this error message because git-lfs isn't installed on Hosted Build Agent by default.
And since you are using Hosted Build Agent, it would be a little troublesome to install git-lfs via Chocolatey on it as you don't have administrator permission. An alternative way would be download the binary files for git-lfs directly and upload it into Source Control. Then you can invoke the git-tfs.exe with an absolute path in your script.
Here are some more details around the solution provided by Eddie. git lfs is not a built-in command. It is a git custom command.
When you call git lfs, git.exe does not know about the lfs command. So it looks in the PATH environment variable and searches for a program named git-lfs.exe. Once found, it calls that program with the provided argument.
So calling git-lfs.exe pull is equivalent to calling git.exe lfs pull.
The solution suggested is therefore to download git-lfs.exe, add it your git repo (it should obviously not be tracked by LFS), and call git-lfs.exe.
It is also possible to add the folder that contains git-lfs.exe to your path environment variable. This makes it possible to use commands like git.exe lfs pull as you usually do.
If you are allowed to install software and have internet access during build you might be able to install git-lfs using the Chocolatey package in a cmd / PowerShell task prior to your git-lfs operation.
How to fix this problem?
Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
As I suggested in "Egit installation path error", it can be linked to the absence of a Git installation (which EGit relies on for the system config path).
Install:
Git as a portable msysgit if you are on Windows: PortableGit-1.8.4-preview20130916.7z (unzip it anywhere you want, and add the C:\path\to\PortableGit-1.8.4-preview20130916\bin to the PATH environment variable)
Or Git using the latest Git Releases from a custom PPA (Personal Package Archive) if you are on Linux
In my case installation of the latest Git version helped.
Downloaded latest version from https://git-scm.com/download/win and installed it to the same directory as Git was before. Started eclipse and error message from Error log disappeared. I have Cygwin64 installed.