git config file Linux e hokae?
Ho Linux, faele ea config e tla lula e le ho / etc / gitconfig . Ho macOS, ho na le faele e bitsoang /usr/local/git/etc/gitconfig.
Ke fumana git config joang?
Ke sheba litlhophiso tsohle joang?
- Matha git config -list , e bonts'a sistimi, lefats'e, le (haeba ka har'a polokelo) litlhophiso tsa lehae.
- Matha git config -list -show-origin , hape e bonts'a faele ea mantlha ea ntho e 'ngoe le e 'ngoe ea config.
git config local e hokae?
. git/config file e ka fumaneha tlas'a
Taelo ea git config ke eng?
Taelo ea git config ke mosebetsi o bonolo o sebelisetsoang ho beha boleng ba tlhophiso ea Git boemong ba projeke ea lefatše kapa ea lehae. Maemo ana a tlhophiso a lumellana le . gitconfig lifaele tsa mongolo. Ho etsa git config ho tla fetola faele ea mongolo.
Ke kenya git joang?
Kenya Git ho Linux
- Ho tsoa ho khetla ea hau, kenya Git u sebelisa apt-get: $ sudo apt-fumana ntjhafatso $ sudo apt-get install git.
- Netefatsa hore ho hlongoa ho atlehile ka ho thaepa git -version : $ git -version git version 2.9.2.
- Lokisa lebitso la hau la mosebelisi la Git le lengolo-tsoibila u sebelisa litaelo tse latelang, u nkela lebitso la Emma sebakeng sa hau.
Ke fumana lebitso la ka la mosebelisi la git config?
Ka har'a bukana ea polokelo ea git, matha git config user.name . Hobaneng ho tsamaisa taelo ee ka har'a git repo directory ea hau e le bohlokoa? Haeba u ka ntle ho polokelo ea git, git config user.name e u fa boleng ba user.name boemong ba lefats'e. Ha o etsa boitlamo, lebitso la mosebelisi le amanang le lona le baloa sebakeng sa lehae.
Ke fetola lebitso la ka la git config le password joang?
U ka hlophisa repo ka 'ngoe ka ho etsa:
- bula terminal foldareng ea repo.
- tsamaisa tse latelang: git config user.name "lebitso la hau la mosebelisi" git config user.password "password ea hau"
Ke fumana tlhophiso ea lengolo-tsoibila la ka la git joang?
Sebelisa e 'ngoe ea mekhoa ena:
- git config -get [user.name | mosebedisi. lengolo-tsoibila]
- git config -list.
- kapa, bula faele ea hau ea git ka kotloloho.
Ke theha Git config joang?
Tlhophiso le ho seta: git config
- Sebaka: /. git/config - Litlhophiso tse ikhethileng tsa polokelo.
- Lefatšeng ka bophara: /. gitconfig - Litlhophiso tse ikhethileng tsa mosebelisi. Mona ke moo likhetho tse behiloeng le -global flag li bolokiloeng teng.
- Sistimi: $(prefix)/etc/gitconfig - Litlhophiso tsa sistimi ka bophara.