

HTTPS example: git remote add origin example: Use the Git repository’s URL copied from step 1.įor example, if you’re using the Git CLI, use the git remote add command. Navigate to the local Git repository directory.Īdd the project’s Git repository as the remote repository of the local repository.

See this Tutorial to set up a Git repository and add files to it using the Git CLI. Push the commit from the cloned Git repository to the hosted Git repository.įor example, if you are using the Git CLI, use the git push command. Ĭommit the updated files to the cloned Git repository.įor example, if you are using the Git CLI, use the git commit command to save the changes. To add a directory and its files, navigate to the directory and use git add. To add new files to the repository, use the Git client to add them to the repository index.įor example, if you’re using the Git CLI, use the git add command. git subdirectory.Ĭopy your application files to the cloned Git repository directory. Don’t add, delete, or modify the files of the. git subdirectory in the repository directory. Use the Git repository’s URL copied from step 1. Using the Git client, clone the project’s Git repository.įor example, if you’re using the Git CLI, use the git clone command. Navigate to the directory where you want to clone the remote Git repository. In the Remove Repository dialog box, click Yes.ĭescription of the illustration devcs_code_clone.png On the Project Settings: Repositories page, mouse over the Git repository name, click Options, and select Delete. To index a repository, on the Project Settings: Repositories page, mouse over the Git repository name, click Options, and select Index. A Git index file is a binary file that serves as a virtual staging area for the next commit and contains a sorted list of object path names, along with permissions and the SHA-1 of a blob object.

Indexing a Git repository creates or updates the Git repository index file with the latest changes. From the Default Branch drop-down list of the Edit Repository dialog box, select the branch, and click Update. On the Project Settings: Repositories page, mouse over the Git repository name, click Options, and select Edit. However, you can set any branch as the default branch of a Git repository. By default, the master branch of a Git repository is set as the default branch. When you open a Git repository on the Git page, the contents of the default branch are displayed. In the Description field of the Edit Repository dialog box, enter or edit the repository description, and click Update. In the Files or Logs view, click the repository description to edit it.Īlternatively, on the Project Settings: Repositories page, mouse over the Git repository name, click Options, and select Edit. On the Git page, from the Repositories drop-down list, select the Git repository.
