Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import all of the source code to Bitbucket Git initially

Tags:

git

bitbucket

Is there a way to import all of the code into Bitbucket Git repo that I have?

I would like to push all of the files in there initially from my local machine then start from there.

I find docs that states importing from Github and others but nothing about existing project that haven't used version control before.

like image 930
Passionate Engineer Avatar asked Dec 21 '22 05:12

Passionate Engineer


1 Answers

Yes.

  • Create a new repo in bitbucket.
  • cd project-root
  • git init
  • git add .
  • git commit -m "Initial commit"
  • git remote add origin url-of-your-bitbucket-remote
  • git push -u origin master

Notice that most of these steps are mentioned when you create the BitBucket repo.

like image 178
Samy Dindane Avatar answered Jan 06 '23 14:01

Samy Dindane