If you have local changes that you want to preserve, you can open a terminal window, change to the repository directory, and run the following command:.If you do not have any local changes that you need to preserve, you can delete the directory and re-clone using the clone command with the maintainer URL.Git clone -branch 8.1.x you originally cloned a repository as a non-maintainer, and then later became a maintainer, you will need to update your repository to use the new clone URL, in order to be able to push your changes back to the source code repository on. If you are or become a maintainer of a project hosted on, and you follow the first two steps in the Git cloning section above, you will see that the Version Control page will have a slightly different clone URL: Switching a repository to being a maintainer Change to this directory, and you are ready to view or work on the source code.The clone command will fail if a subdirectory with this name already exists. A new subdirectory will be created, such as colorbox in this case. Paste or type the clone command in your terminal window.For example, you might want to put a module in a working Drupal site under web/modules/contrib. Open a terminal window and change to the directory above where you want the cloned source code to be located.Copy the command shown under Setting up repository for the first time. ![]() Click the Show button to update the clone command.Select the branch that you want to clone (you can always switch branches later).This page explains how to do it for Git repositories in the Drupal project. Getting a local copy of a Git repository is known as "cloning" the repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |