Actions

EmSys

Git - Setup

From EdWiki

GitLab - Setup

  • Goals
    To setup git so that it is ready for work.
  • Setup Name and Email
    If you have never used git before, you need to do some setup first. Run the following commands so that git knows your name and email. If you have git already setup, you can skip down to the line ending section.
git config --global user.name "Your Name"
git config --global user.email "username@dese.iisc.ernet.in"
  • If you use proxy for internet access
git config --global http.proxy http://noauthproxy.iisc.ernet.in:3128/
  • Configure default Editor
git config --global core.editor vim
  • Configure default diff tool
git config --global merge.tool vimdiff
  • Setup Line Ending Preferences
    • Linux and Unix Users
git config --global core.autocrlf input
git config --global core.safecrlf true
  • Windows Users
git config --global core.autocrlf true
git config --global core.safecrlf true
  • Checking your Settings
git config --list
  • Getting Help
git help <verb>
git <verb> --help
man git-<verb>

e.g., you can get the manpage help for the config command by running

git help config