https://github.com/andrewmcodes-archive/gitscrewed.me
My collection of git commands I should take advantage of
https://github.com/andrewmcodes-archive/gitscrewed.me
Last synced: 3 months ago
JSON representation
My collection of git commands I should take advantage of
- Host: GitHub
- URL: https://github.com/andrewmcodes-archive/gitscrewed.me
- Owner: andrewmcodes-archive
- Created: 2018-12-06T04:26:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T07:54:55.000Z (over 6 years ago)
- Last Synced: 2025-01-01T06:22:25.586Z (5 months ago)
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitscrewed.me
## Change last commit
### Docs
- [Change commit message](https://help.github.com/articles/changing-a-commit-message/)
### Message
```bash
git commit --amend
# follow prompts
```## Rebase
### Docs
- [Keep fork up to date](https://robots.thoughtbot.com/keeping-a-github-fork-updated)
### The things
#### Long form
```bash
git checkout master
git pull
git checkout my-branch
git pull --rebase
```#### With ZSH alias
```bash
gco master
gl
gco -
gup origin master
```## Branch
### Docs
- [New branch](https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches)
### New
#### Long form
```bash
git checkout -b new-branch-name
```#### With ZSH alias
```bash
gcb new-branch-name
```### Remote
#### Docs
- [Adding a remote](https://help.github.com/articles/adding-a-remote/)
#### Long form
```bash
git remote add upstream https://github.com/user/repo.git
```#### With ZSH alias
```bash
gra upstream https://github.com/user/repo.git
```