The essentials for any technical interview.
| Command | Description |
|---|---|
git init
|
Initialize a new Git repository.
|
git clone [url]
|
Download a repository from a remote source.
|
git status
|
Show the working tree status (staged/unstaged files).
|
git add [file]
|
Add file(s) to the staging area.
|
git commit -m "[message]"
|
Record changes to the repository.
|
git branch
|
List, create, or delete branches.
|
git checkout -b [branch]
|
Switch branches or restore working tree files (using -b creates a new branch).
|
git pull
|
Fetch from and integrate with another repository or a local branch.
|
git push
|
Update remote refs along with associated objects.
|
git log
|
Show commit logs.
|