If you work with branches, and you should, this setting helps you keep track of which branch you are in at a given time. See the git-config documentation for many more configuration options. Alternatively, you can simply run the above commands again with new details. git/config to change settings on a particular repo. Should you wish to change your details later on, you can manually edit the ~/.gitconfig file for global settings, or edit. Git config -global user.email config -global color.ui auto
You should obviously use your own contact details. Running these commands will setup your global git settings. 2.3 Switch to a branch that was pushed remotelyīasic Operations Configure your global git settings.2.2 Push and create a new remote branch from an existing local branch of the same name.I wrote an article: Git Cheat Sheet that covers some important Git commands you’ll need.
CHECK YOUR SETTINGS git config to learn some super Git commands? The color.ui is a meta configuration that includes all the various color.* configurations available with git commands. To configure this, do this: git config -global color.ui true Next, set up colors for your Git console.įor Linux OS users, you can use third pary Zsh configurators like oh my zsh to customize your terminal look with themes :).If you want to use something else, configure like so: This is not compulsory, if you don’t configure this, Git will use your default editor. Next set up the default text editor you’ll use whenever you need to enter a message in Git.Git config -global user.email -global option makes sure these values are used throughout your system Git config -global user.name "bolajiayodeji" First set your identity, your name and email address like so:.Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. Now that you have Git on your system, let’s set up the Git environment.
FOR MAC OS:ĭownload Git for macOS or install using Homebrew brew install gitĪDVERTISEMENT HERE’S A MORE DETAILED INSTALLATION GUIDE FOR DIFFERENT SYSTEMS ON GIT OFFICIAL DOCS Now that you know what Version Control and Git mean, let’s install it. If a mistake is made, developers can restore and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members or contributors.
Version control software keeps track of every modification to the code in a special kind of database.
Version control is the process of managing changes to source code or set of files over time. Here’s a quick recap of what Version control means: Version Control is: the process of managing changes to source code or set of files over time. I assume you already know what Version control is, if you don’t, kindly check out this slide to learn more.
In this article, I’ll show you how to install Git, set it up for the first time, useful tips and resources to learn more/ learn advanced git concepts. Git also works well on a wide range of operating systems and IDEs (Integrated Development Environments).
Unlike older centralized version control systems such as SVN and CVS, Git is distributed: every developer has the full history of their code repository locally. Git is a distributed and actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel. Git is a Free and Open Source Distributed Version Control System.īy far, Git is the most widely used modern version control system in the world today.