DEV Community

Heitor Ramon Ribeiro
Heitor Ramon Ribeiro

Posted on

Configuring the GIT client & SSH

It's time to configure our git client. This process is easy and doesn't take a lot of steps.

Git LFS & Flow

  • Install
brew install git-lfs git-flow
Enter fullscreen mode Exit fullscreen mode

Configuring the client

  • Set the configuration file

If you forked or downloaded the repository, please use this command to copy the configuration file with a lot of pre added alias and other stuff.

ln -s $(pwd)/git/gitconfig ~/.gitconfig
Enter fullscreen mode Exit fullscreen mode

After executing this commands, configure your Git user settings

git config --global user.name "Your Name"
git config --global email "you@your-domain.com"
Enter fullscreen mode Exit fullscreen mode

Improving Git Log

You can add more colors to your git log output by executing this command.

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Enter fullscreen mode Exit fullscreen mode

SSH

If you forked or downloaded the repository, please use this command to copy the configuration file.

ln -s $(pwd)/ssh/config ~/.ssh/config
Enter fullscreen mode Exit fullscreen mode

Top comments (0)