- Open terminal
- Configure Git
- Set up SSH key
- Add SSH key to GitHub profiles settings
- Add github.com to known hosts
- Open a pipeline
- In the right panel of the screen (aka Sidekick), click on the tab named Terminal.
- Click the terminal (large dark background area), and you should see a blinking cursor. You can start typing once that cursor appears.
- In the terminal, type the following command to set your user name:
git config --global user.name "Your name here"
- In the terminal, type the following command to set your email:
git config --global user.email "[email protected]"
Optionally, you can configure Git further with these commands:
git config --global color.ui true
git config --global core.editor emacs
- In the terminal, type the following command to create an
SSH key on the machine that’s running Mage:
ssh-keygen -t rsa -C "[email protected]" -f ~/.ssh/id_rsa -N ""
- Run the following command and copy the public SSH key (it’ll be used the next section):
It should look something like this:
cat ~/.ssh/id_rsa.pub
ssh-rsa alotofcharacters...morecharacters [email protected]
- Open your GitHub profiles settings.
- On the left hand side, click the section called SSH and GPG keys.
- In the top left corner, click a button labeled New SSH key. This will open a new form to create a new SSH key.
- Enter in anything into the input field labeled Title. For example,
mage-cloud-key
. - Under the dropdown labeled Key type, select the
Authentication Key
option. - In the text area labeled Key, paste in the output text you copied after running the
command
cat ~/.ssh/id_rsa.pub
in your terminal. - Click the button labeled Add SSH key.
- In your terminal, run the following command to add github.com to known hosts:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
Now you can push your changes to a remote GitHub repository.