![]() |
VOOZH | about |
Bitbucket is a Git-based repository hosting platform by Atlassian that helps developers manage source code, collaborate with teams, and track changes efficiently in a structured development environment.
Working with Bitbucket involves creating a remote repository and using Git commands to manage and synchronize code between local and remote environments.
Create a Bitbucket account, click Create Repository, and choose either public (accessible to everyone) or private (accessible only to you).
👁 ImageClick the Clone button in Bitbucket and copy the repository URL (HTTPS or SSH).
git clone https://USERNAME@bitbucket.org/USERNAME/REPOSITORY_NAME.git👁 ImageClone is the process of copying a remote repository to your local machine without affecting the original repository.
git status Shows current state of files (tracked/untracked/modified).
echo "This is a test file" >> file.txt
git add file.txtCreates a file and adds it to staging area
👁 Imagegit commit -m "Initial Commit"
git push origin mastergit pull
git pull origin master
git pull --allFetches latest changes from Bitbucket to local machine
Create a Branch:
git branch testbranch👁 ImageSwitch Branch:
git checkout testbranchMerge Branch:
git merge branch_name👁 ImageDelete Branch:
git branch -d branch_name👁 ImageNavigate to your project folder in the terminal and use Git commands like add, commit, push, and pull as needed.
| Command | Action performed |
|---|---|
| git init | git initialization. |
| git add --all | This stages the newly added files and prepares them for commit. |
| git remote add origin (repository_url) | Use the https or ssh URL link from the bitbucket website to connect to remote Bitbucket repository that you want to add the folder into |
| git commit -m | Initial Commit |
| git push origin master | Push the files into your Bitbucket repository |