Skip to content

Commit

Permalink
Storage Best Practices
Browse files Browse the repository at this point in the history
  • Loading branch information
devvyyxyz committed Oct 29, 2024
1 parent 021c4d9 commit 2f9d86f
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions FAQ/StoringProjects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
icon: file-directory-open-fill
label: Storage Best Practices
description: Where to store you BMD bot project
layout: defualt
categories: [faq]
tags: [faq, project]
expanded: true
visibility: public
---

# Project Storage Best Practices

## 1. Primary Drive Storage

Store projects on your main internal SSD (e.g., `C:\ Drive`) for improved performance and reliability:
- **SSD Benefits**: Faster read/write speeds, enhanced project load times, and reduced risk of mechanical failure.

## 2. Avoid External Drives

While external drives are convenient, they’re prone to degradation, especially HDDs. Instead:
- Opt for internal SSDs or high-quality USB 3.0 drives if external storage is needed.

## 3. Organized Directory Structure

Create a clear folder hierarchy, like `Documents/BMD_Projects`, to keep projects organized:
- **Example**:
```plaintext
C:\Users\YourName\Documents\BMD_Projects\ProjectName
```

## 4. Use Version Control

Integrate Git or other VCS tools to manage versions and avoid redundant copies:
- **Recommendation**: Use platforms like GitHub or Bitbucket for cloud versioning.
Here’s an in-depth guide to setting up and using version control for your project:

Version control tracks changes to your project files, making it easy to manage updates, collaborate, and revert to previous versions. **Git** is a widely used version control system, and **GitHub** provides a remote repository option. Here’s how to set up version control:

### Step 1: Install Git
1. Download Git from [git-scm.com](https://git-scm.com/) and follow the installation instructions.
2. Configure Git by running the following commands in your terminal:
```bash
git config --global user.name "Your Name"
git config --global user.email "your-email@example.com"
```

### Step 2: Initialize Git in Your Project Directory
1. Open a terminal in your project folder and initialize Git:
```bash
cd path/to/your/project
git init
```
2. This creates a `.git` folder to track changes.

### Step 3: Create a Repository on GitHub
1. Go to [GitHub](https://github.com/) and create a new repository for your project.
2. Copy the repository URL for setup.

### Step 4: Link Your Local Repository to GitHub
1. In your terminal, link your local repository to GitHub:
```bash
git remote add origin <repository-url>
```
2. Verify the link with `git remote -v`.

### Step 5: Commit and Push Changes
1. Add files to the staging area:
```bash
git add .
```
2. Commit your changes:
```bash
git commit -m "Initial commit"
```
3. Push the changes to GitHub:
```bash
git push -u origin main
```

### Step 6: Managing Changes
- Use `git status` to check modified files.
- To pull updates from GitHub, use `git pull`.
- Make regular commits to track changes and use GitHub’s interface to manage branches and collaborate with others.

## 5. Regular Backups

Automate backups to an external drive or cloud storage to ensure data recovery:
- **Tip**: Schedule weekly or bi-weekly backups.

0 comments on commit 2f9d86f

Please sign in to comment.