Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: ✏️ simplify link handling, add tip for git stash #57

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading