Git on Centos

Setup GIT

Git will already be installed as part of the OS.

  • git config –global “Your Name
  • git config –global “

I know I said I’d include as much documentation as possible but there are enough web sites giving instructions on how to set up git that I’m going to leave it there.

If you are registered with git then you know to  set up an ssh key or use the web address and password.

What you must do is set up a gitignore file so that the secrets files you generate will not be visible to anyone.

This is important as people have had their cloud infrastructure hijacked and received bills for hundreds of pounds just because their keys were visible on git.

git config --global core.excludesfile '~/.gitignore'

edit ~/.gitignore and add the following lines:

# .tfstate files
# .tfvars files

Download a git repository

mkdir ~/git
cd git
git init
git clone