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.

4 Responses to Importing a new project in Git

  1. Jermaine says:

    What’s up all, here every person is sharing these know-how, thgus it’s fastidious to read this webpage, and
    I used to visitt this blog daily.

  2. Jimmy says:

    Hey there, You’ve done an incredible job. I will definitely
    digg it and personally suggest to my friends.

    I am sure they will be benefited from this web site.

  3. Lucy says:

    Hey I am so excited I found your web site, I really fund you by accident, while I was bowsing
    on Bing for something else, Regardless I am here now and would
    just like to say thank you for a remarkable post and a all round enjoyable blog (I also love
    the theme/design), I don’t have time to read it all at the moent butt I have saved it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep
    upp the superb work.

  4. I enjoy perusing your web site. Appreciate it!|

Leave a Reply

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

*