Git pro-tips

Jul 9, 2015
### Easiest way to make diff file:
```
git diff master HEAD > patch.diff
```
### restore diff:
```
git apply untitled.diff
```

### Easy squash commits into one
```
http://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit
```

### list all commit authors:
```
git log --all --format='%cN <%cE>' | sort -u
```

### change commit author
```
git commit --amend --author "New Author Name <email@address.com>"
```

### git for Windows:
```
https://git-for-windows.github.io/
```