Skip to content

Instantly share code, notes, and snippets.

@jimmy18dev
Created February 28, 2018 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimmy18dev/a9afeb428f9a8627dc515f8c0292db50 to your computer and use it in GitHub Desktop.
Save jimmy18dev/a9afeb428f9a8627dc515f8c0292db50 to your computer and use it in GitHub Desktop.
Git Remote Add Origin
I have an existing project
cd /path/to/your/repo
git remote add origin https://xxx@bitbucket.org/repo.git
git push -u origin master
I'm starting from scratch
git clone https://xxx@bitbucket.org/repo.git
cd /path/to/your/repo
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