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 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.