Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pushing Source code or Projects from VPS (Ubuntu 18.04) running under nginx to Bitbucket.

Part A

Log into your server

ssh user@youripaddress



 Enter nginx server websites folder (this where your projects running live under nginx are stored)

cd /var/www/html

List the available projects


Enter the desired project

cd project-1

Check if git is installed and if it is not install it (directions in the link below)

git --version  

Check the git status of the current project and commit if there any uncommitted changes otherwise it will display ("nothing to commit or working tree clean")

git status 

Commit if there any changes and check the status again

git commit -m "saving unsaved changes..."

git status


Part B

Log into  Bit bucket

Setup SSH Keys in your bit bucket account (Follow the link bellow on how to setup ssh,

Please not that the first steps are done in your server so you just have to continue from where you left off) 

Create  a repository, not a project (though normally repositories are created under projects so you may what to have a project at least - just enter the name of the repository and leave the rest the way it is)

Connect your local project to your new remote repository

git remote add origin "<repository ssh url>"

git push -u origin master

Verify if your project has been sent to the remote repository you just created


Please let me know if you find any challenges

Thank you :)




Log in or Sign up to comment
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

175 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you