Skip to content

Configuration of repository #23

@alexandresalome

Description

@alexandresalome

In git directory, there is a config file on which many great things can be operated:

  • fetch patterns
  • upstream settings
  • ...

This file is using a format looking like this:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:gitonomy/gitlib.git
[branch "master"]
    remote = origin
    merge = refs/heads/master

This file can be overriden by user's file (~/.gitconfig). Recently, environment variables have been disabled in process (thanks @lyrixx), so this disable fully the user's inherited configuration.

Two strategies can be imagined:

  1. Parse the file and allow manipulation of it
  2. Use git config command

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions