![]() This saves you from having to manually initialize and update the submodules later. If your project contains submodules, using this parameter will make sure that all submodules will both be cloned and initialized once the main project has been cloned. It accesses the repository through a remote URL. recurse-submodulesĬlones and initializes all contained submodules. This topic describes how to clone the contents of a repository from Cloud Source Repositories to your local machine. The git clone is a command-line utility which is used to make a local copy of a remote repository. If this option is not specified, Git will simply create a new folder named after the remote repository. The name of the folder on your local machine where the repository will be downloaded into. Usually, this will point to a remote server, using a protocol like HTTP, HTTPS, SSH, or GIT. Specifies the URL of the remote repository. That remote repository's URL is then later referred to as the "origin". Typically, the "original" repository is located on a remote server, often from a service like GitHub, Bitbucket, or GitLab). You will then have a full-blown, local version of that Git repo and can start working on the project. It is also possible to use an SSH key with git.The "clone" command downloads an existing Git repository to your local computer. The default value is $/k8s/docker' tag : current disable_push : true image_name : ' my-docker-image' It can be an explicit path in the containerâs file system, or a variable that references another step. The command used for cloning any repository is: git clone For Example: If you want to clone the Bootstrap repository.When you clone a repo you get a copy of the entire history of the repo. The directory to which the repository is cloned. The git clone command is used to create a copy of a specific repository or branch within a repository. Fields FieldĪ basic, free-text description of the step. YAML step_name : type : git-clone title : Step Title description : Step description working_directory : /path repo : owner/repo git : my-git-provider revision : abcdef12345' use_proxy : false credentials : username : user password : credentials fail_fast : false when : branch : ignore : on_success. Debian or Ubuntu sudo apt-get update sudo apt-get install git Fedora sudo dnf install git CentOS sudo yum install git Arch Linux sudo pacman -Sy git Gentoo sudo emerge -ask -verbose dev-vcs/git How to Install Git on a Mac Download and install the latest Git for Mac installer here. You can still override it with your own git clone step as explained in this page. In this case an implicit Git clone step is included in your pipeline. Notice that if you are an existing customer before May 2019, Codefresh will automatically checkout the code from a connected Git repository when a pipeline is created on that repository. ![]() You can trigger a pipeline from a commit that happened on Git repository A while the pipeline is checking out code from Git Repository B. Cloning a repository is not constrained to the trigger of a pipeline. ![]() You can checkout code from any private or public repository. What is Git LFS Git is a distributed version control system, meaning the entire history of the repository is transferred to the client during the cloning process. Improve this page on GitHub Git-clone stepĬlones a Git repository to the filesystem.Ī pipeline can have any number of Git clone steps (even none). ![]()
0 Comments
Leave a Reply. |