meme/GITEA-INSTRUCTIONS.md

1.8 KiB

Pushing to Gitea Server

This document provides instructions on how to push this repository to your private Gitea server.

Prerequisites

  • A Gitea server (e.g., https://git.boilerhaus.org)
  • Git installed on your local machine
  • SSH key set up for authentication (recommended)

Steps

1. Create a New Repository on Gitea

  1. Log in to your Gitea server (e.g., https://git.boilerhaus.org)
  2. Click the "+" button in the top right corner and select "New Repository"
  3. Enter a name for your repository (e.g., "meme")
  4. Add a description (optional): "A modern, responsive website for a meme cryptocurrency"
  5. Choose whether to make it private or public
  6. Do NOT initialize the repository with a README, .gitignore, or license
  7. Click "Create Repository"

2. Add the Remote Repository

# Using SSH (recommended)
git remote add origin git@git.boilerhaus.org:boilerrat/meme.git

# OR using HTTPS
git remote add origin https://git.boilerhaus.org/boilerrat/meme.git

3. Push the Code

git push -u origin main

4. Verify the Push

  1. Go to your Gitea server and navigate to the repository
  2. You should see all the files and commit history

Troubleshooting

Authentication Issues

If you encounter authentication issues:

  • For SSH: Make sure your SSH key is added to your Gitea account
  • For HTTPS: You'll be prompted for your username and password

Repository Not Found

If you get a "repository not found" error:

  • Double-check the repository name and path
  • Make sure the repository exists on your Gitea server
  • Verify that you have the correct permissions

Other Issues

If you encounter other issues, try:

# Check your Git configuration
git config --list

# Check your remotes
git remote -v

# Check your branch
git branch