Check if Git has already been installed, Git is usually preinstalled on Mac and Linux.
When we worked on GitHub, the basic work cycle like the fork, edit, commit, pull request, merge. The same cycle, with a few differences, is what we will work through on the command line.
git branch commands’ various options. -a shows all local and remote branches, while -r shows only remote branches.
There’s also another way to do figure out what branches are on your remote by actually using the remotely related commands, git remote and git ls-remote. The former displays plenty of information about the remote in general and how it relates to your own repository, while the latter simply lists all references to branches and tags that it knows about.
While merging file from master to local alex branch, sometime we may cause conflict merge error. We can solve the conflicted merge error in the number of ways. If we want to merge conflict file to remote master file then we can use git command.