![]() ![]() ![]() name : Git checkout : repo : '' dest : /srv/checkout version : release-0.22 - name : Read-write git checkout from github : repo : :mylogin/hello.git dest : /home/mylogin/hello - name : Just ensuring the repo checkout exists : repo : '' dest : /srv/checkout update : no - name : Just get information about the repository whether or not it has already been cloned locally : repo : '' dest : /srv/checkout clone : no update : no - name : Checkout a github repo and use refspec to fetch all pull requests : repo : dest : /src/ansible-examples refspec : '+refs/pull/*:refs/heads/*' - name : Create git archive from repo : repo : dest : /src/ansible-examples archive : /tmp/ansible-examples.zip - name : Clone a repo with separate git directory : repo : dest : /src/ansible-examples separate_git_dir : /src/ansible-examples.git - name : Example clone of a single branch : repo : dest : /src/ansible-examples single_branch : yes version : master - name : Avoid hanging when http(s) password is missing : repo : dest : /src/from-private-repo environment : GIT_TERMINAL_PROMPT : 0 # reports "terminal prompts disabled" on missing password # or GIT_ASKPASS: /bin/true # for git before version 2.3. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace git svn can track a standard Subversion repository, following the common 'trunk/branches/tags' layout, with the -stdlayout option.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Each of these flags can point to a relative repository path (-tagsproject/tags) or a full url (-tags). These are optional command-line options for init. ⢠Collections in the Openvswitch Namespace trunk -t -tags -b -branches -s. Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace.Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace.Here the command git clone -b branchname gitlink could be used here. ⢠Collections in the Containers Namespace You can specify the version branch and download it with the branch name. git clone -b -single-branch -depth - no-single-branch Clone only the history leading to the tip of a single branch, either specified by the -branch option or the primary branch remoteâs HEAD points at.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |