infuerno.github.io

Pluralsight: Git Fundamentals

History

Configuring Git

Config files

Commands

More specific override more general, so you can override certain settings just for a particular repo.

Working Locally with Git

By staging and commiting in two parts, you can stage and commit different unrelated changes separately.

Use rm or mv as normal to delete or rename files, stage any changes and commit them, Git will recognise renames as such.

Working Remotely with Git

Git Protocols

Branches

Branches are simply labels on the sha1 commits, but following along with more recent commits.

Tags

Tags are labels on the sha1 commits which never change (unlike branches).

Stash

Useful way as a temporary holding area for changes you don’t want to commit to a branch, but you don’t want to lose.

Merging

Rebasing