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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,633
Community Members
 
Community Events
176
Community Groups

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

Part A

Log into your server

ssh user@youripaddress

OR

ssh user@mydomain.com

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

cd /var/www/html

List the available projects

ls 

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

https://www.atlassian.com/git/tutorials/install-git  

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)

https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html 

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 :)

 

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events