Contribute to the same Git repository in different computers using SourceTree/CLI

Contribute to the same Git repository in different computers using SourceTree/CLI

During these past days I was struggling with something that I thought it should be straightforward: I have one repository on GitHub and I wanted to commit changes using two different computers, my PC from home and my Mac from work. At first glance, I was wondering if only cloning my repository in my Mac laptop and start pushing some commits could work, and it worked partially, but when checking the repository from GitHub I discovered some weird issues with the authority of the commit:

Read more

How to amend commits using SourceTree/CLI

Amend commits

Git is an excellent tool to safely develop applications with total control of our source code. It can be used to track changes, collaborate with others and save your work in remote in servers that GitHub or Bitbucket offer us. But all people have bad days and mistakes can occur at any moment. Luckily, Git implements some mechanisms to fix all those commits that you pushed with a wrong identity, really bad messages or you just want to remove them forever.

Read more