Using the Web Interface
- Navigate to your repository
- Click the "Add Files" button
- Upload or create files
- Add a commit message
- Click "Commit Files"
Using Git CLI
# Clone the repository
git clone http://localhost:3001/username/repo-name.git
# Make changes to your files
# ...
# Stage your changes
git add .
# Commit your changes
git commit -m "Your commit message"
# Push to Revolv
git push origin mainUsing Revolv CLI
# Clone a repository
revolv clone username/repo-name
# Make changes and commit as usual
git add .
git commit -m "Your commit message"
# Push using standard Git
git push origin mainUsing the API
POST /api/commits
Content-Type: application/json
Authorization: Bearer <your-token>
{
"repositoryId": "repo-id",
"message": "Your commit message",
"files": [
{
"path": "file.txt",
"content": "File content",
"status": "added"
}
]
}Need Help?
If you're having trouble pushing code, check out our troubleshooting guide.