wiki:Dev/GettingStarted/GitConfig

Git config file example

Git config file is located here: .git/config

If you are a developer at CERN, replace the following values in the config file:

  • remoteserver.com with indicodev.cern.ch
  • my-public-repo with your username
  • /path/to/my/public/repo/cds-indico-username.git with /afs/cern.ch/user/your-initial/yourusername/public/repo/cds-indico-yourusername.git
[core]
        repositoryformatversion = 0
        filemode = false
        bare = false
        logallrefupdates = true
        symlinks = false
        ignorecase = true
        excludesfile = info/.gitignore
        autocrlf = false

[user]
        name = John Doe
        email = john.doe@cern.ch

[alias]
        st = status
        ci = commit
        br = branch
        co = checkout
        df = diff
        lg = log -p

[color]
        ui = auto
        diff = auto
        status = auto
        branch = auto

[remote "my-public-repo"]
        url = remotesever.com:/path/to/my/public/repo/cds-indico-username.git
        fetch = +refs/heads/*:refs/remotes/my-public-repo/*