Version control made easy
🏠 HOME
OUR TOOLS
Git is a centralized version control system. Said otherwise, it’s a tool to maintain a centralized repository of code, which can have different versions. That’s the software we use for all of the Prospect.io applications.
Git can run from the command line (using the git CLI) or using an interface, such as GitTower. But, whatever the way you use it, it will always rely on the same components and principles:
When working in a team, it is common that we have different branches, which are holding different sets of commits, representing the different features we are building. We have:
One big advantage of git is that every change, every mistake can be rolled back. To remove a mistake that was done locally, use “git reset”. To remove a mistake that was pushed, use git rollback. This will create another commit that cancels the previous one.
To be sure that we can always roll back a change, and to avoid merge conflicts when working in a team, we need to never use any destructive command. A destructive command is one that has an impact on the previous commits. Commands such as rebase, squash, rename, are thus discouraged on pushed commits. Anyway, if you wanted to run them, git would warn that you should use the –force flag in order to perform it.
There are just a few exceptions to this rule:
What is Git: become a pro at Git with this guide | Atlassian Git Tutorial
Source: https://www.git-tower.com/blog/git-cheat-sheet/
Source: https://www.git-tower.com/blog/git-cheat-sheet/
<aside> <img src="/icons/playback-previous_lightgray.svg" alt="/icons/playback-previous_lightgray.svg" width="40px" /> Unix shell
</aside>
<aside> <img src="/icons/playback-next_lightgray.svg" alt="/icons/playback-next_lightgray.svg" width="40px" /> Tower
</aside>