Git can be installed on any operating system.
Here is a basic installation how-to.
NOTE: I’ll have a better approach in the next unit, where we’ll install GitHub Desktop after creating a GitHub account, figuring out the credentials for you, I think it’s easier. But it’s worth mentioning how to install Git separately, too.
macOS
Using Homebrew, you can run:
brew install git
Windows
Download and install Git for Windows.
Linux
Use the package manager of your distribution to install Git.
For example run this on Ubuntu:
sudo apt update
sudo apt install git
Using this method you have to set your name and email in the terminal using these 2 commands:
git config --global user.name "your name"
git config --global user.email "[email protected]"
Make sure you enter your name and email, not those fake ones!
Lessons in this unit:
0: | Introduction |
1: | ▶︎ Installing Git |
2: | Initialize a repository |
3: | Commit changes |
4: | Branches |
5: | Push and pull |
6: | Working with a remote |
7: | Solving conflicts |
8: | .gitignore |