Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Adding a local repository to Bitbucket using Git

//cd into your dir that have your code
//initiate it as a git repo
git init
git add --all
git commit -m "Initial Commit"
//copy the url for your EMPTY repo in bitbucket
//set the remote url for your repo and push your initial commit
git remote add origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git
git push -u origin master
 
PREVIOUS NEXT
Tagged: #Adding #local #repository #Bitbucket #Git
ADD COMMENT
Topic
Name
1+6 =