For more information about using Git and GitLab see GitLab University.
This is a guide on what you'll need to install and run on your machine to get Git up and running so you can create your first merge request in minutes! Follow the numbered steps below to complete your setup.
curl -sSL https://get.rvm.io | bash -s stable.
rvm install 2.3.1to install Ruby (enter your system password if prompted).
rvm use 2.3.1 --defaultto set your default Ruby to
ruby --versionto verify Ruby is installed. You should see:
ruby 2.3.1p112 (2016-04-26 revision 54768).
gem install bundlerto install Bundler.
git clone email@example.com:gitlab-com/www-gitlab-com.gitto clone the website. If you prefer using https, then execute:
git clone https://gitlab.com/gitlab-com/www-gitlab-com.git, but note that if you've activated 2FA on your GitLab.com account, you'll need to take some additional steps to set up personal access tokens. If you ever want to switch between SSH and https, execute
git remote remove origin, followed by
git remote add origin [..]where the
[..]is the part that starts with
git@for SSH, or with
cd www-gitlab-comto change to the
bundle installto install all gem dependencies.
This is especially a problem for anyone running a Mac OSX operating system. The command to 'tame' git is
git config --global core.autocrlf input - execute it.
Instructions on how to update the website are in the readme of www-gitlab-com.
bundle exec middleman.
Until this is automated in CI, a quick way to see if there are any invalid links inside a page is the following.
A pop-up window will open and tell you how many links, if any, are invalid. Fix any invalid links and ideally any warnings, commit and push your changes, and test again.