A fully guided tutorial on version control with Git
Introduction:
Git is the leading version control tool, and it is essential in every professional programmer's life. Learn how to use Git to track your own changes and collaborate with others.
Installation process of Git:
Follow the steps below:
A. Go to https://git-scm.com/downloads
B. Download Git for your desired OS
C. Install Git by your OS default options
Note: Once you are done with the installation process, you should get the information about Git while running git on the command line
Table of the contents:
- Intro to Git
- Creating a Git repo
- Cloning the existing repo
- Determining a Repo's Status
- Displaying a repository commits
- Add commits to a repo
- Tagging, branching and merging
- Undoing changes
- Git init command
- Git clone command
- Git add command
- Git commit command
- Git status command
- Git push Command
- Git pull command
- Git Branch Command
- Git Merge Command
- Git log command
- Git remote command
Git configuration:
Run each of the commands below to configure your Git:
A. git config --global user.name "<Full_Name>" # seting up Git with your name
B. git config --global user.email "<your-email-address>" # seting up Git with your email
C. git config --list # showing the list of the configuration
Code Editor Setup:
Follow the steps below to set up your desired Code Editor:
1. Sublime Text Setup
A. git config --global core.editor "'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -n -w"
2. Atom Editor Setup
B. git config --global core.editor "atom --wait"
3. VSCode Setup
C. git config --global core.editor "code --wait"