Git

Classes

When working on a feature, we may need to get updates from the main development branch.

We could...

Stash your changes in git.

git stash
Stashes changes.

git stash list
List stashes.

git stash show -p
Show...

View list of commits
git log

Show files changed
git log --name-status

Show changes
git log -p or git...

Ignore files and directories.

A file with the name .gitignore in your repository will tell git to...

Composer conflicts

When a developer works on a project, they may often need to install and configure...

Use bisect to determine which commit introduced a bug.

Given a list of commits somewhere before and...

Add files to commit interactively.

git add -p

Git interactive patch

Help

Display a list of commands and helpful info.

git help

Get more info about a command.

git help...

Save your work and collaborate with other developers.

Courses

Git advanced features and best practices.