Skip to content

jfrogtraining/git-lfs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

git-lfs-demo

This repository demonstrates Git LFS use with Artifactory.

Create a local repository in Artifactory of type Git LFS. For this example, we will be using a repository called gitlfs-local on https://104.197.232.86/artifactory. To log in, the username is gitlfs and password is demo.

Clone a Github repository and add files that you would like to push to this and any large files that you would like to push to the Git LFS local repository in Artifactory.

In order to connect the Github repository to the Git LFS in Artifactory, we will need to change the .git/config file. A sample of the file is provided in this repository.

Now, type the command git lfs track “*.<file extension>”. The file extension should match the file extension of the files you would like to push to the Git LFS repository in Artifactory. For example, if we wanted to push all the zip and war files to the Git LFS repository, we would type in git lfs track “*.zip”, then git lfs track “*.war”.

Finally, use the command git lfs push origin master to push all the source code to the Github repository and the large files to the Git LFS repository in Artifactory.

About

This repository demonstrates git-lfs use with artifactory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors