From 0ada5216b1755e8447aa7510ea569d9378f417e3 Mon Sep 17 00:00:00 2001 From: N3rdvana <40967196+Mr-N3rd@users.noreply.github.com> Date: Mon, 24 Mar 2025 15:43:58 +0000 Subject: [PATCH] Fixed Reference to Users Directory for linux and MacOS. Had `tilde` in front of Absolute path, creating an incorrect absolute or incorrect relative path. Split into one of each. --- ...c-across-multiple-devices-using-github.mdx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/product-highlights-and-benefits/sync-across-multiple-devices-using-github.mdx b/docs/product-highlights-and-benefits/sync-across-multiple-devices-using-github.mdx index 70e3c76bc..7efc8e17a 100644 --- a/docs/product-highlights-and-benefits/sync-across-multiple-devices-using-github.mdx +++ b/docs/product-highlights-and-benefits/sync-across-multiple-devices-using-github.mdx @@ -36,9 +36,9 @@ This guide can, in theory, be used on an unlimited number of computers. It is re - Ensure it is off until the guide specifically tells you to turn it back on 3. Ensure that you are on the computer where your snippets are the most up to date (Computer #1) 4. Open the following folder in your IDE or terminal: - - macOS: `~/Users/user/Library/com.pieces.os/production/Pieces` + - macOS: `~/Library/com.pieces.os/production/Pieces` or `/Users/user/Library/com.pieces.os/production/Pieces` - Windows: `C:/Users/user/Documents/com.pieces.os/production/Pieces` - - Linux: `~/Users/user/Documents/com.pieces.os/production/Pieces` + - Linux: `~/Documents/com.pieces.os/production/Pieces` or `/Users/user/Documents/com.pieces.os/production/Pieces` 5. In the VS Code terminal, run the following command to initialize a git repository: `git init` 6. (Optional) Create a .gitignore file and paste the following into the file to ensure you don’t commit any IDE-specific files: ```ignorelang @@ -73,13 +73,13 @@ This guide can, in theory, be used on an unlimited number of computers. It is re 9. Switch to your other computer **(Computer #2)** 10. Ensure that Pieces OS is turned off on this computer 11. Open the following folder in your IDE or terminal: - - macOS: `~/Users/user/Library/com.pieces.os/production` - - Windows: `C:/Users/user/Documents/com.pieces.os/production` - - Linux: `~/Users/user/Documents/com.pieces.os/production` + - macOS: `~/Library/com.pieces.os/production/Pieces` or `/Users/user/Library/com.pieces.os/production/Pieces` + - Windows: `C:/Users/user/Documents/com.pieces.os/production/Pieces` + - Linux: `~/Documents/com.pieces.os/production/Pieces` or `/Users/user/Documents/com.pieces.os/production/Pieces` 12. Delete the following folder named **Pieces**: - - macOS: `~/Users/user/Library/com.pieces.os/production/Pieces` + - macOS: `~/Library/com.pieces.os/production/Pieces` or `/Users/user/Library/com.pieces.os/production/Pieces` - Windows: `C:/Users/user/Documents/com.pieces.os/production/Pieces` - - Linux: `~/Users/user/Documents/com.pieces.os/production/Pieces` + - Linux: `~/Documents/com.pieces.os/production/Pieces` or `/Users/user/Documents/com.pieces.os/production/Pieces` 13. Go to [https://github.com](https://github.com) - If you are not signed in, please sign in to the same GitHub account you’ve been using 14. Copy the clone URL of your remote repository @@ -99,15 +99,15 @@ Now let’s test that snippets sync between your computers. 1. Create a new snippet on Computer #2 2. [Turn Pieces OS off](/features/back-up-and-restore#step-1-quit-pieces-os-and-pieces-desktop) 3. Go to the folder of your repository: - - macOS: `~/Users/user/Library/com.pieces.os/production/Pieces` + - macOS: `~/Library/com.pieces.os/production/Pieces` or `/Users/user/Library/com.pieces.os/production/Pieces` - Windows: `C:/Users/user/Documents/com.pieces.os/production/Pieces` - - Linux: `~/Users/user/Documents/com.pieces.os/production/Pieces` + - Linux: `~/Documents/com.pieces.os/production/Pieces` or `/Users/user/Documents/com.pieces.os/production/Pieces` 4. Commit and Push all changes to your remote repository 5. Go to computer #1 (Pieces OS should still be off on this computer) 6. Go to the folder of your repository: - - macOS: `~/Users/user/Library/com.pieces.os/production/Pieces` + - macOS: `~/Library/com.pieces.os/production/Pieces` or `/Users/user/Library/com.pieces.os/production/Pieces` - Windows: `C:/Users/user/Documents/com.pieces.os/production/Pieces` - - Linux: `~/Users/user/Documents/com.pieces.os/production/Pieces` + - Linux: `~/Documents/com.pieces.os/production/Pieces` or `/Users/user/Documents/com.pieces.os/production/Pieces` 7. **If there are any pending changes for your repository, ensure you discard those changes before continuing the guide.** 8. Pull the latest changes from your remote repository: - If there are any merge conflicts, always accept the remote changes