When checkout
is executed without any parameters, Git performs the following steps:
Fetches the named paths in the working tree.
Fetches the related objects from the index.
Updates the contents of the working tree with the ones from the index.
However the behavior changes according to the parameters used.
Parameter |
Description |
---|---|
|
This is used to spawn a new branch from the checked out position mentioned with the commit ID.
This command creates a new reference inside |
|
This parameter is used to set up the upstream configuration usually while creating a new branch with the When executed, a separate section is added to the [branch "master"] remote = origin merge = refs/heads/master
|