September 2024
Intermediate to advanced
743 pages
27h 48m
English
The following table provides an overview of the most important Git commands.
|
Command |
Description |
|---|---|
|
Creating a Repository |
|
|
git init |
Initializing a new Git repository |
|
git clone ssh://<user name>@<domain>/<repositoryname>.git |
Cloning of an existing (remote) repository based on the passed URL |
|
git clone git@github.com: <user name>/<repositoryname> |
Cloning of an existing (remote) repository based on the passed GitHub URL |
|
Local Changes |
|
|
git status |
Output of status information |
|
git diff |
Viewing changes to the versioned files |
|
git add . |
Adding all local changes to the staging area |
|
git add -p <file> |
Adding the changes to a file to the staging area |
|
git commit -a |
Committing ... |
Read now
Unlock full access