Thursday, December 20, 2012

Git & BitBucket

To use BitBucket and Git:

  1. Create a repository on BitBucket first. 
  2. Create a new folder of interest in your development environment. 
  3. Add some files. 
  4. Type "git init" to initialize the current folder as repository. 
  5. Type "git add ." to add all files. 
  6. Type "git commit -m "Initial."" to perform initial commit. 
  7. Type "git push https://bitbucket.org/user/new_repo master" to push changes into your new BitBucket repository.