Skip to content

Commit

Permalink
docs: ✏️ simplify link handling, add tip for git stash
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-ketterer committed Jan 18, 2024
1 parent 226d302 commit addf02d
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions references/Lightning CLI/update-cli-from-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,22 @@ Before make sure that you stash or clear any changes you may have in the working
A quick way to clean is to `stash` the changes, for example:

```sh
git stash
git stash
```

:::tip
After upgrading, don't forget your stash.
You will have access to your stashed changes with
```sh
git stash list
git diff stash
```

You can also drop it if nothing is usefull
```sh
git stash drop
```
:::

To pull the latest changes use the `git pull` command, as follows:

Expand Down Expand Up @@ -114,16 +127,10 @@ Optionally, set stable as default toolchain as follows:

## Update the symlink

Start by removing the existing one:

```sh
sudo rm -f "/usr/local/bin/lgtn"
```

Create a new symlink that links the new build binary to `/usr/local/bin/lgtn`, as follows:
Create or overwrite a symlink that links the new built binary to `/usr/local/bin/lgtn`, as follows:

```sh
sudo ln -s ~/fleek-network/lightning/target/release/lightning-node /usr/local/bin/lgtn
sudo ln -sfv ~/fleek-network/lightning/target/release/lightning-node /usr/local/bin/lgtn
```

## Set user path in config.toml
Expand Down

0 comments on commit addf02d

Please sign in to comment.