An open API service indexing awesome lists of open source software.

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

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
```