Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down