Skip to content

Commit

Permalink
doc(import): add note around uncommitted changes (#1432)
Browse files Browse the repository at this point in the history
Lerna throws a Git error when current project has uncommitted changes.

Fixes #763

[ci skip]
  • Loading branch information
thetutlage authored and evocateur committed May 24, 2018
1 parent ce5c484 commit bd79949
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/troubleshooting.md
Expand Up @@ -62,6 +62,13 @@ lerna ERR! execute CONFLICT (content): Merge conflict in [file]
Run `lerna import` with the `--flatten` flag to import the history in "flat"
mode, i.e. with each merge commit as a single change the merge introduced.

### Failing when git tree has uncommitted changes
You will receive `fatal: ambiguous argument 'HEAD':` error, when the current project has **uncommitted changes**.

#### Solution
Make sure to commit all the changes you have in your lerna project, before importing any packages using `lerna import`.


## Publish Command

### Publish does not detect manually created tags in fixed mode with Github/Github Enterprise
Expand Down

0 comments on commit bd79949

Please sign in to comment.