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 |
Are you intimidated by Git? Can’t figure out
merge vs rebase? Are you afraid of screwing up
something any time you have to do something in
Git? Do you rely on ChatGPT or random people’s
answer on StackOverflow to fix your problems?
Your coworkers are tired of explaining Git to
you all the time? Git is something we all need
to use, but few of us really master it. I
created this course to improve your Git (and
GitHub) knowledge at a radical level. Launching
May 21, 2024. Join the waiting list!