Connect Local Project To Git Repository
Connect Local Project to Git Repository
Step 1: Go to Your Local Project Folder
cd ~/Desktop/scan2attend_user
Step 2: Initialize Git (If Not Already)
git init
Step 3: Add the Bitbucket Remote
git remote add origin git@rdbb.bitbucket.org:zztlrd/scan2attend_user.git
Step 4: Add All Project Files
git add .
Step 5: Commit Files
git commit -m "Initial commit"
Step 6: Push to Master Branch
If the default branch is master:
git branch -m main master
git fetch origin
git push -u origin master --force
✅ Done
Your local project is now successfully connected to the Bitbucket repository.
Previous Topic