1.8 KiB
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
- Log in to your Gitea server (e.g., https://git.boilerhaus.org)
- Click the "+" button in the top right corner and select "New Repository"
- Enter a name for your repository (e.g., "meme")
- Add a description (optional): "A modern, responsive website for a meme cryptocurrency"
- Choose whether to make it private or public
- Do NOT initialize the repository with a README, .gitignore, or license
- 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
- Go to your Gitea server and navigate to the repository
- 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