The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i push my existing repository into my bitbucket from the command?

Kashi Mamidisetti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2019

i have already one project in my local system but i don't know how to push it into bit bucket can you send the commands how can i push existing project into my bit bucket from the cmd 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
kiran jonnalagadda
Contributor
June 25, 2019

Step 1: Switch to your repository's directory

cd /path/to/your/repo

Step 2: Connect your existing repository to Bitbucket

if files  exist in local add them using

git init
git add .
git commit -m"your message"
git remote add origin https://git-clone-url ====> [you can check origins by using "git remote -v"]

git push -u origin master ===> this branch can be whatever you are trying to push git push origin -u {branch name}
TAGS
AUG Leaders

Atlassian Community Events