This very simple mock-version of copado-git-get
seeks to allow developers local testing without the need of uploading their code to Copado functions online.
Currently, the functionality is limited to checking if parameters are correct via console.log
as well as running:
- cd directory
- git fetch orgin branch name (optionally limited by depth)
- git checkout branch name (optionally creates the branch with -c)
The original also sets up the git origin itself.
npm install -g copado-git-get-mock
"branch name"
--create "branch name"
or-c "branch name"
--directory "my/new/git/folder"
or-d "my/new/git/folder""
--depth 100
(replace 100 with shallow cloning depth of your choice)--verbose
or-v
copado-git-get develop
copado-git-get --create "feature/1234"
copado-git-get --create "feature/1234" --directory "my/new/git/folder" --depth 40
copado-git-get "feature/1234" --directory "my/new/git/folder" --depth 40 --verbose