![]() ![]() Switch your directory to the repository that you cloned. See the following example: git clone downloads a copy of the code, including all commits, and branches from the repo, into a new folder for you to work with. Go to the folder where you want the code from the repo stored on your computer, and run git clone, followed by the path copied from Clone URL in the previous step. Open the Git command window (Git Bash on Git for Windows). Select Clone in the upper-right corner of the Code window and copy the URL. If the code is on your local computer and not yet in version control, either create a new Git repo in your project or add your code to an existing repository.įrom your web browser, open the team project for your organization and select Repos > Files.If the code is in another Git repo, such as a GitHub repo or a different Azure Repo instance, import it into a new or existing empty Git repo, and then complete the next step.If You don't have any code yet, first Create a new Git repo in your project, and then complete the next step.You can set the answer to every question as yes using the PLATFORMSH_CLI_NO_INTERACTION environment variable.Complete the following step that's applicable to your scenario: In such cases, you want to customize the CLI to bypass any confirmation questions. You might want to use the CLI in a script to automate repetitive tasks such as synchronizing your files locally. You can customize how the CLI operates and what it returns with a configuration file ( ~/.platformsh/config.yaml)įor details, see the customization instructions on GitHub. The code is only merged between environments remotely. Generally, they offer more options than the Git commands alone.įor example, platform push offers options such as -activate (to activate an environment before pushing)Īnd -no-wait (so you can continue working without waiting for the push to complete).įor all of them, you don’t need to configure a Git remote.Īn example of how this affects commands is that when you run platform merge, ![]() Some CLI commands (especially many within the environment namespace) have some overlap with Git commands. ![]() You can find that in the Console or by running platform projects to list all accessible projects. Replace PROJECT_ID with the ID of your project. Platform project:set-remote -project PROJECT_ID If you run a command that requires a specific project and environment, you are prompted to select them.įor example, if you run the following command: ![]() When you are in an empty directory or a directory not associated with a specific Platform.sh project, Platform get abc123 my-project Select the right project and environment v |vv |vvv, -verbose Increase the verbosity of messagesĬlone the project "abc123" into the directory "my-project": n, -no Answer "no" to any yes/no questions disable interaction y, -yes Answer "yes" to any yes/no questions disable interaction V, -version Display this application version i, -identity-file =IDENTITY-FILE An SSH identity (private key ) to use p, -project =PROJECT The project ID or URL depth =DEPTH Create a shallow clone: limit the number of commits in the history -build Build the project after cloning Defaults to the project default, or the first available e, -environment =ENVIRONMENT The environment ID to clone. Platform get Arguments:ĭirectory The directory to clone to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |