Git

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

I you want to learn more about git I recommend Pro Git by Scott Chacon and Ben Straub.

Activate git flow

SourceTree offers a way to manage branches in a coherent way. I won't detail on what git flow does.

I prefer to use a v in front of my version tags. So I added a v as the image shows.

Open SourceTree and click on the Git Flow button.

Activate git flow 1

Activate git flow 2

Existing Project

Already have a Git repository on your computer? Let's push it up to Bitbucket.

$ cd /Users/luiscberrocal/PycharmProjects/wildbills_project

$ git remote add origin [email protected]:luiscberrocal/wildbills.git

$ git push -u origin --all # pushes up the repo and its refs for the first time

Existing Project 1

Existing Project 2

Troubleshooting problems with GIT

Some times you have trouble making commits. You might need to make git more verbose in order to tell you what is wrong.


GIT_CURL_VERBOSE=1 GIT_TRACE=1 git pull origin master