IT’S A GOOD IDEA TO FOLLOW THIS GUIDE BEFORE INSTALLING GITKRAKEN OR TORTOISEGIT!!!
- What is Git?
- What are ‘branches’?
- Getting Started
So, you’ve downloaded Git from https://git-scm.com/download/win. Go ahead and install it. I recommend keeping it on your C drive. This is a straightforward process, all the defaults are fine. Just spam the ‘Next’ button and get it installed.
Right click anywhere on your desktop and open Git Bash:
Now you want to type a series of git commands:
- Type this using your email address tied to your GitLab account:
ssh-keygen -t rsa -C "email@example.com"
This command will prompt you for a location and filename to store the key pair and for a password. When prompted for the location and filename, just press enter to use the default. If you use a different name, the key will not be used automatically.
- Now one last command will copy this key for you so that you can paste it in to GitLab:
cat ~/.ssh/id_rsa.pub | clip
- Go to GitLab and under Profile Settings > SSH Keys, paste your key in, providing a name as well. The whole process looks like this:
That’s it. All set up. Now you can browse to your project on GitLab and clone your project to your machine by browsing to your folder of choice, right-clicking to open up GitBash, and running the following command:
replacing that last part with your project’s SSH address found on GitLab:
After that, you are free to commit, push, pull and change branches to your hearts content.
For more Git commands, see my other two posts on this topic: