Missed Team ’24? Catch up on announcements here.

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

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

0 votes
kiran jonnalagadda 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}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events