Simply Notes #1: Setting up Source control with BitBucket using Git

Bitbucket lets you create free unlimited private repositories. Here are the simple steps to setup a project and push it to Cloud.


bitbucket logo
github logo

  • Get this awesome native app for Git from here
  •  Now create a Repository on Bitbucket
  • Open up Git Shell and enter these simple commands

    cd /working project folder
    git init
    git remote add origin https://username@bitbucket.org/username/reponame.git

    Note: If that above command says remote origin already exists try this below command

    git remote set-url origin https://username@bitbucket.org/username/reponame.git
    git add .
    git commit -m "first commit"
    git push -u origin --all
  • DONE!!! your code on cloud.
For reference on what each command does this is the place to go. 

Comments

Popular posts from this blog

Launch .Net Core with VSCode for starters

Protecting sensitive data using Secret Manager in .Net Core

Load Testing an nodejs API