How to use GIT + bitbucket

Finally I decide to move all my projects from SVN to Git.
And my friends recommend https://bitbucket.org/ – perfect place for hosting projects. Absolutely free for small groups (up to 5 accounts as I remember.)
+ Jira + wiki etc.

So, your register, create first repo then commit files.
It`s very trivial, but I always forget syntax. 🙂

  git init
  git remote add origin https://ksi_sergey@bitbucket.org/ksi_sergey/ruby-mail-filter.git
  git add .
  git status
  git commit -m "First commit"
  1 files changed, 44 insertions(+), 0 deletions(-)
  create mode 100755 filter.rb

And Push

  git push -u origin master
  Password:
  Counting objects: 3, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (2/2), done.
  Writing objects: 100% (3/3), 755 bytes, done.
  Total 3 (delta 0), reused 0 (delta 0)
  remote: bb/acl: ksi_sergey is allowed. accepted payload.
  To https://ksi_sergey@bitbucket.org/ksi_sergey/ruby-mail-filter.git
   * [new branch]      master -> master
  Branch master set up to track remote branch master from origin.
  $:~/Ruby Mail Filter$

Done 🙂

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>