Initial Setup
NB: Create Initial Repo and Change Repo Name
cd /home/<user>/<project>
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git init
git remote add origin https://<user>:YOUR_GITEA_TOKEN@gitea.<domain>.com/<user>/traefik-n8n.git
git add .
git commit -m "Initial commit"
git branch -M main
git push -u origin main
Updates
NB: Change to app directory
cd /home/<user>/WHAT
git add .
git commit -m "Update files"
git push -u origin main
1. Install Git
sudo apt update && sudo apt install git -y
2. Configure Git (replace with your details)
git config –global user.name “Your Name”
git config –global user.email “[email protected]”
3. Navigate to your folder
cd /path/to/your/folder
4. Initialize Git repository
git init
5. Add remote Gitea repository (replace URL)
git remote add origin [email protected]:username/repo.git
6. Add all files and commit
git add .
git commit -m “Initial commit”
7. Set branch and push to Gitea
git branch -M main
git push -u origin main











Comments