-
Notifications
You must be signed in to change notification settings - Fork 1
/
GitBareRepoInstructions
39 lines (32 loc) · 1.33 KB
/
GitBareRepoInstructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
mkdir ~/dotfiles
cd ~/dotfiles
git init --bare $HOME/dotfiles
# Put this alias in your .bashrc
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
bash
config config --local status.showUntrackedFiles no
# Add these two lines. But, think, they might be worthless.
# Cause, you have to use two-way auth now
git config --global user.email "[email protected]"
git config --global user.name "tobeypeters"
git remote add origin https://github.com/tobeypeters/dotfiles.git
# Might need to go on Github and generate a new Personal Access Token
#
# Next:
# Download Microsoft Github CredentialStore Manager-Core:
https://github.com/microsoft/Git-Credential-Manager-Core/releases/download/v2.0.252-beta/gcmcore-linux_amd64.2.0.252.766.deb
#
# Desc: It's their cross-platform credentials storage manager. It locally
# stores your Github, Azure, etc ... credentials.
#
# run : sudo dpkg -i <path-to-package>
# run : git-credential-manager-core configure
#
# run : git config --global credential.credentialStore secretservice
#
# CredentialStore options:
# https://github.com/microsoft/Git-Credential-Manager-Core/blob/master/docs/configuration.md#credentialcredentialstore
#
# Should now be able to store your pat with:
# git config --global credential.helper manager-core
#