woensdag 27 april 2016

BitBucket > Setting up a Git repository

It is still my goal to have my own AWS-powered LAMP server (or Windows tech equivalent) server up and running where I'll host a Git server, mail server, web server, etc. But what I wish for and what is realistic are generatlly two very different things, so it's time to get a bit more realistic in the short term. And that newfound realism is going to start with setting up a Git repository on BitBucket so that we'll have a lightweight method to share coding projects over multiple locations.

How to:

  • Create an account at BitBucket - this should speak for itself
  • Create an EMPTY Git repository on your BitBucket account
  • Go to the empty repsository at BitBucket and...
    • click 'Clone'
    • A popup will appear containing text starting with "git clone"
    • Copy all text MINUS "git clone" to the clipboard
  • Create a new project (optionally with initial code) in Visual Studio
  • Add the project to Source Control in Visual Studio (if necessary)
  • Commit the project
    • You'll get an error message that the project wasn't added to a remote repository and a screen with an option to provide the URL of the remote repo
    • Paste the clipboard into the URL field
    • Click the obvious button and...
  • DONE :-)

Definitely can be done neater, but this works.

Geen opmerkingen:

Een reactie posten