How to download a bitbucket project by git

1

Good morning!

I've never used git or bitbucket, I wanted to know how to check out a project that is on bitbucket.

Thank you in advance.

    
asked by anonymous 19.10.2015 / 14:41

1 answer

2

How to git-clone a project:

git clone remote-url-do-repo
cd nome-do-projecto
git fetch
git checkout master

The first step clones the project to your machine, into a folder with the name of the project, from the folder where you are. That is: If you are in /home/username/ and the project is called xpto this command will create the xpto folder inside the /home/username/ folder.

The second command is to enter into the folder ( cd = Change Directory) that you just cloned.

The third command ( fetch ) is for git to fetch all the branches, etc, etc, etc .. that exist.

The last command causes you to checkout to the master branch

    
19.10.2015 / 15:20