GitPHP / Docs / 💻 Git & SSH
⚡️ REST API v1

The GitPHP guide 🚀

Comprehensive open-source documentation: Self-hosting, Personal Access Tokens, Git & SSH, pull requests, and REST API.

4 Pushing and Cloning over HTTP (Standard Password)

a) Push an existing local project

cd my-project
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://git.ysnapp.com/aburasha/my-project.git
git push -u origin main

b) Clone and Pull

git clone https://git.ysnapp.com/aburasha/my-project.git
cd my-project
git pull origin main
💡 Authentication: when Git asks for credentials, use your account password or a Personal Access Token. Private repositories require collaborator access (read or write).

5 Pushing and Cloning over SSH

SSH keys allow passwordless, encrypted Git operations via port 22:

  1. Generate a new SSH key (Ed25519 recommended):
    ssh-keygen -t ed25519 -C "[email protected]"
  2. Copy your public key:
    cat ~/.ssh/id_ed25519.pub
  3. Add the key under Settings → SSH keys in your account.
  4. Test the server connection:
    ssh -T [email protected]
  5. Use the SSH clone URL:
    git clone [email protected]:aburasha/my-project.git
    git push origin main
⚙️ For server-level SSH daemon setup and permissions, see: docs/ssh-setup.md.