Next: , Up: Manipulating   [Contents][Index]


6.1 Repository Setup

M-x magit-init     (magit-init)

This command initializes a repository and then shows the status buffer for the new repository.

If the directory is below an existing repository, then the user has to confirm that a new one should be created inside. If the directory is the root of the existing repository, then the user has to confirm that it should be reinitialized.

M-x magit-clone     (magit-clone)

This command clones a repository and then shows the status buffer for the new repository.

The user is queried for a remote url and a local directory.

User Option: magit-clone-set-remote.pushDefault

Whether to set the value of remote.pushDefault after cloning.

If t, then set without asking. If nil, then don’t set. If ask, then ask the user every time she clones a repository.