Importing a new project in Git

I’m working on the ProTalk project and one of the things I needed to do was to import the initial code for the project into our private bitbucket repository. I created the repository online, but since this is my first time working with Git I didn’t know how to import the code into this repository. As it turns out it was very simple (like with everything that is simple once you know how to do it) and it only took a few commands to get it working.

Go to the directory where the code is and use the following commands:
git init
git add *
git commit -m “Initial import”
git remote add origin <repository url>
git push origin master

That’s all there is to it, but it took me some time to figure it out. I will certainly learn a lot more using Git for this project, since this is the first time I’m using a Distributed Versioning Control System and I can’t wait.

This entry was posted in PHP, ProTalk and tagged , . Bookmark the permalink.

6 Responses to Importing a new project in Git

  1. Right here is the right site for anybody who
    wishes to understand this topic. You realize so much its
    almost tough to argue with you (not that I personally would want to…HaHa).
    You definitely put a brand new spin on a subject
    that has been discussed for years. Great stuff, just wonderful!

  2. Its like you read my mind! You appear to know so much about this,
    like you wrote the book in it or something. I think that you could
    do with a few pics to drive the message home a little bit, but other than that, this is magnificent blog.
    An excellent read. I will definitely be back.

  3. bilete avion says:

    Bilete de avion ieftine. Promotii si preturi avantajoase pentru mii
    de zboruri. Rezervari online de hoteluri si bilete avion Tarom, Blue Air, Iberia, KLM,
    British … bilete avion Bilete de avion ieftine de la sute de companii aeriene de linie si low-cost.
    Acum si in rate prin StarBT si Card Avantaj.
    Rezerva acum, plateste mai tarziu!
    rezervari, bilete de avion, Franta, Germania, Anglia, Italia, Spania, Belgia, Cipru, Grecia, Germania, Portugalia, Charter,
    Cargo, Corporate, aeroambulanta,
    Cautati bilete de avion ieftine cu plecare din Romania? Aerotravel are tot ce aveti nevoie.
    Fie ca sunteti in cautarea unor oferte de zbor pentru o vacanta cu .

    Compară gratuit bilete de avion de la peste 1000 de companii
    aeriene low cost și tradiționale. Găsește zboruri ieftine
    cu motorul de căutare zboruri …
    Cautam pentru tine CELE MAI IEFTINE bilete de avion si bilete LOW COST.
    Mii de zboruri, sute de companii aeriene, mii de destinatii!
    Compara si alege!

  4. says:

    It is perfect ttime to make a few plans for the long run and it’s time to bbe happy.
    I have learn this post and if I could I wish to recommend you some fascinating things or
    advice. Maybe you can write subsequent articles relating to
    this article. I wish to read more things about it!

  5. You might assume that in order for a parrot to be able to
    imitate the human voice. The city sieges themselves, which were supposed to
    be one of the most epic elements of the Rv – R content, were instead instanced zones with ~50 people per side.
    Armstrong invented a system for eliminating noise caused by the power of the waves.
    The hundreds of people were tested to find the human energy
    vibration was raised, the energy increased. From trying to get honors, recognition, success,
    power, achievements to giving my time, talents, enthusiasm to others and the world.

  6. Know that you are not only growing great organic plants and saving money for yourself, but you are also contributing to the well-being of the future.
    Grow your own tomatoes, lettuce, cucumbers, carrots, spinach.
    There are several videos which for teaching the
    gardener how to look after various types of plants.

Leave a Reply

Your email address will not be published. Required fields are marked *