Cloudberrie Standard
| Organization owner | cloudberrie-studio |
| First repository | cb-website |
| Visibility | Private |
| README | Required |
| .gitignore | Next.js for the website repository |
| License | None for proprietary code |
| Local path | /Users/cloudberrie/Documents/Cloudberrie/Projects/cb-website |
Initialize Existing Local Code
Use this procedure when the source code already exists locally and GitHub has already created a repository with a README and .gitignore.
Open the permanent folder
cd /Users/cloudberrie/Documents/Cloudberrie/Projects/cb-website
pwdInitialize and connect Git
git init
git branch -M main
git remote add origin https://github.com/cloudberrie-studio/cb-website.git
gh auth setup-gitReview and commit local code
git status
git add .
git status
git commit -m "feat: add initial Cloudberrie website"Merge GitHub’s initial files
git pull origin main --allow-unrelated-histories --no-rebaseResolve README or .gitignore conflicts, then:
git add .
git commit -m "chore: merge initial repository configuration"
git push -u origin mainImportant Troubleshooting
| Message | Resolution |
|---|---|
| Repository not found | Confirm private repository access and run gh auth login; browser login and Terminal authentication are separate. |
| Need to specify how to reconcile divergent branches | Use --no-rebase or set git config --global pull.rebase false. |
| Non-fast-forward push rejected | Pull and merge remote history before pushing. Do not force-push during normal initialization. |
| README add/add conflict | Keep one approved README, remove conflict markers, stage, commit, and continue. |
Validation
git status
git remote -v
git log --oneline --decorate -5
gh repo view cloudberrie-studio/cb-website