One Pager Cheat Sheet
- Git is an open source, widely used version control system, which simplifies the collaboration of software developers by allowing them to track changes, create branches, and merge them back to the main repository.
- You can use
git branch
,git check
andgit merge
to create, select and merge branches, and view diffs, commits and the change history withgit diff
,git show
andgit log
. - Git checkout can be used to
switch branches
, providing the name of the desired branch to enter, for examplegit checkout my_branch
. Fetch
,Pull
andPush
are the threeGit
commands used to synchronize local and remote repositories.- The
git pull
commandfetches
andmerges
the latest changes from a remote repository into the local branch of your workspace. - By learning the most important commands such as
git clean
,git bisect
,git commit --amend
andgit command --help
, you can significantly improve your productivity and performance. - The command
git show
is used to view the changes within a specific file, and optionally takes a commit identifier as an argument to display the changes for a specified commit.