Skip to main content

Repositories

warning

This document has been translated using machine translation without human review.

How to create a new repository in the current folder?​

git init
git remote add origin https://git.exmple.org/repo.git

How to clone/fetch a remote repository?​

Clone the master branch
git clone https://github.com/alekseynemiro/knowledgebase.git
Clone a specific branch
git clone -b <branch_name> <repo_url>

What is origin?​

origin is the default name for a remote repository.