Skip to content

Instantly share code, notes, and snippets.

@anwas
Created February 28, 2018 14:55
Show Gist options
  • Select an option

  • Save anwas/e9d0c63b6ebb52c67e2c5406178ad895 to your computer and use it in GitHub Desktop.

Select an option

Save anwas/e9d0c63b6ebb52c67e2c5406178ad895 to your computer and use it in GitHub Desktop.
[BitBucket project initialize on local machine] #git #bitbucket
# Existing local project
#Step 1: Switch to your repository's directory
cd /path/to/your/repo
# Step 2: Connect your existing repository to Bitbucket
git remote add origin https://aivaras_n@bitbucket.org/pavbiblioteka/theme_pankrastas.git
git push -u origin master
# From scratch
git clone https://aivaras_n@bitbucket.org/pavbiblioteka/theme_pankrastas.git
cd theme_pankrastas
echo "# My project's README" >> README.md
git add README.md
git commit -m "Initial commit"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment