Skip to content

Commit

Permalink
docs: new flag -n for move command
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Jun 23, 2020
1 parent 3e30e58 commit 3d73fb6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,27 @@ upstream

Switch from current branch to another but stashing uncommitted changes

__Note:__ This command does `git stash` then `git checkout <other_branch>` and finally `git stash pop`.
It also will make sure first that `<other_branch>` matchs with your existing branches. Use also `-u` (or `--upstream`) flag to fetch a remote branch.
__Note:__ This command does `git stash` then `git checkout <other_branch>` and finally `git stash pop` (possible to disable). It also takes care that `<other_branch>` matches with the existing local branches.

__Additional options:__

- Use `-u` (or `--upstream`) flag to fetch a remote branch.
- Use `-n` (or `--no-apply-stash`) flag to prevent stashed changes to be applied.

```sh
move other_branch

# Branch `ghost_branch` was not found. No possible to switch.
move ghost_branch

# With -u flag the branch will be fetched from remote origin
# With -u flag the branch will be fetched from remote origin.
move -u feature/new_remote_branch

# With -n flag stashed changes will not be applied.
move -n feature/new_remote_branch

# Possible to combine two option flags
move -un feature/another_remote_branch
```

### feature
Expand Down

0 comments on commit 3d73fb6

Please sign in to comment.