Crucifix Arnaud

Git

Some Git notes.

Exclude files and folders:

  • .git/info/exclude (local, not tracked)
  • .gitignore (local)
  • .gitignore (global)

Diff

git diff {baseBranch} {newBranch} -- {file}: Diff for a file between 2 branch

Edit Commit

git commit --amend --author="{name} <{email}>": Change last commit author (combine with interactive rebase for multiple commits)

Links