https://github.com/andismith/git-recipes
Git Recipes
https://github.com/andismith/git-recipes
Last synced: 2 months ago
JSON representation
Git Recipes
- Host: GitHub
- URL: https://github.com/andismith/git-recipes
- Owner: andismith
- Created: 2018-05-31T08:46:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T08:56:05.000Z (about 7 years ago)
- Last Synced: 2025-02-07T18:53:28.759Z (4 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git recipes
## Add and commit
### Only add tracked files
`git add -u`
### Amend commit with new files
```
git add .
git commit --amend --no-edit
git push --force
```## Rebase
```
git checkout master
git pull
git checkout [my-branch]
git rebase master
```## Log
### One Line Release Notes
`git log --oneline -no-merges [commit]..`