본문 바로가기
The Information Manager From Hell

[Git configuration on Server]

by cocacola0 2022. 11. 13.

REF

Git install
Git remote repo access

1. Install git

  • If you don't have sudo authority, use conda
  • $ conda install -c anaconda git

2. Git configuration

  • git global set-up (configuration is different from users)
    • git system set-up (unlike previous one, this would effect the whole system regardless of its users)
  • Here I am assuming everyone has git configurations local.
  1. On your local. Copy from below information from local's ~/gitconfig.
$ vi ~/.gitconfig

[user]
        name = [name]
        email = {e-amil}
  1. On desktop1. Paste the copied information to desktop1's ~/gitconfig.
$ vi ~/.gitconfig

[user]
        name = [name]
        email = {e-amil}

3. Accessing remote repo

4. Avoid enter password

  • After step3, git will keep asking for password. To avoid this use credential.helper
# never ask credentials again
git config --global credential.helper store

# cache default timeout = 15 minutes
git config --global credential.helper cache

# timeout = 3600 seconds = 1 hour
git config --global credential.helper 'cache --timeout=600'

'The Information Manager From Hell' 카테고리의 다른 글

[Git Tags]  (0) 2022.11.14
[Redirecting git submodules]  (0) 2022.11.12

댓글