TheOpenCloudEngine / uEngine-cloud

OCE's main component includes : PaaS (Self-service) Portal, Dev-ops, Cloud orchestrator. Also includes microservices-architecture components: Identity & Access Management conforming to OAuth2 and JWT spec and Zuul-based API proxy that interacts with IAM and the service registry (Eureka).

Home Page:http://uengine.org/products/pass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

프로젝트 생성시 Git Lab 기본 주소 문제.

jinyoung opened this issue · comments

재현 방법:

  1. Spring-boot app 을 생성한다.
  2. 소스코드 탭을 클릭한다.
  3. git clone 을 받은 후, 수정한 후 커밋/push하려고 한다

발생 문제:

fatal: unable to access 'http://gitlab.pas-mini.io/jyjang/credit-service.git/': The requested URL returned error: 403

수동 해결 방법: .git/config 를 수정

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
[remote "origin"]
        url = http://jyjang@gitlab.pas-mini.io/jyjang/credit-service.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master

이렇게 jyjang@ 을 넣어주니, id / pwd 물어보는 prompt 가 떠서 푸시가 가능해짐. 이상함.

베어메탈에서 테스트 결과

[centos@master2 credit-service]$ 
[centos@master2 credit-service]$ 
[centos@master2 credit-service]$ git config --global user.email "jyjang@uengine.org"
[centos@master2 credit-service]$ git commit
[master 3cd4f8d] sdf
 1 file changed, 1 insertion(+), 1 deletion(-)
[centos@master2 credit-service]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'http://gitlab.pas-mini.io': jyjang
Password for 'http://jyjang@gitlab.pas-mini.io': 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 250 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To http://gitlab.pas-mini.io/jyjang/credit-service.git
   93ee535..3cd4f8d  master -> master