힘내 : "당신이 누구인지 알려주세요"오류
Chef + 일부 임시 bash 스크립트를 사용하여 함께 부트 스트랩하는 앱 서버가 있습니다. 문제는 이러한 앱 서버 중 하나에서 업데이트를 실행하려고 할 때 얻는 것입니다.
19:00:28: *** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git pull origin master
앱 서버를 업데이트 할 때마다 간단한 작업을 수행하려면 실제로 설정해야 합니까? 이름과 이메일이 설정되지 않은 경우 오류가 발생하지 않도록이 동작을 무시할 수 있습니까?
PHP 스크립트를 호출하여 git을 초기화하고 커밋 할 때 많은 시간을 소비합니다. 그리고 작업 흐름은 다음과 같아야합니다.
1.git init
2.git config user.name "someone"
3.git config user.email "someone@someplace.com"
4.git add *
5.git commit -m "some init msg"
[23]과 1을 바꾸면 구성이 전혀 작동하지 않습니다.
이것이 도움이되기를 바랍니다.
을 수행하는 대신 다음을 수행 git pull
할 수 있습니다.
git fetch
git reset --hard origin/master
이들 중 어느 것도 git 사용자 이름 / 이메일을 구성 할 필요가 없습니다.
이것은 커밋되지 않은 로컬 변경 / 커밋을 삭제하고 HEAD가 브랜치가 아닌 커밋을 가리 키도록합니다. 그러나 로컬로 변경하거나 해당 리포지토리에 커밋해서는 안되므로 앱 서버에는 문제가되지 않습니다.
소스 트리를 사용하는 경우 : 저장소-> 저장소 설정-> 고급-> "전역 사용자 설정 사용"상자를 선택 취소하십시오.
나를 위해 일했다.
그것은 나를 위해 작동합니다. 이것을 시도하십시오. 원격 액세스로 터미널을 구성해야합니다.
git config --global user.name "abc"
git config --global user.email "abc@example.com"
부트 스트랩 프로세스를 업데이트하여 ${HOME}/.gitconfig
적절한 내용으로 파일 을 만들 거나 다른 곳에서 기존 파일을 복사하십시오.
git config user.email "insert github email here"
git config user.name "insert github real name here"
이것은 나를 위해 잘 작동했습니다.
같은 문제가 나와 함께 기본 이름과 이메일 리포지토리 설정을 추가하여 해결했습니다.
Doron이 제안한 것처럼-
소스 트리를 사용하는 경우 : 저장소-> 저장소 설정-> 고급-> "전역 사용자 설정 사용"상자를 선택 취소하십시오.
기본 이름과 이메일 주소를 추가하십시오.
앱 서버를 업데이트 할 때마다 간단한 git pull origin master를 수행하기 위해 이것을 설정해야합니까? 이름과 이메일이 설정되지 않은 경우 오류가 발생하지 않도록이 동작을 무시할 수 있습니까?
한 번만 요청하면 풀 머신 요청을 커밋하거나 전달하려는 github 계정에이 머신의 rsa 공개 키가 추가되었는지 확인합니다.
이에 대한 자세한 내용은 여기를 참조하십시오.
나를 위해 문제는 네트워크 연결이었습니다 .Wi-Fi에 다시 연결하면 세부 정보를 가져 와서 문제없이 커밋 할 수 있습니다.
제 경우에는 Chad가 위에서 언급 한 것처럼 "email"이라는 단어에 "e"가 누락되었지만 귀하의 경우에는 해당되지 않습니다. 모든 것이 예상대로 당기고 있는지 확인하려면 다음 명령을 누르십시오.
git config -l
당신은 그런 식으로 당신의 이메일을 작성해야
git config --global user.email "you@example.com"
그런 다음 : 사용자 이름 작성
git config --global user.name "Your Name"
그 팝업 후 창이 나타납니다
기여하고자하는 계정에 대해 USERNAME & EMAIL을 작성하십시오.
IMHO,이 오류를 해결하는 올바른 방법은 전역 자식 구성 파일을 구성하는 것입니다.
그렇게하려면 다음 명령을 실행하십시오. git config --global -e
기본 git 구성을 삽입 할 수있는 편집기가 나타납니다.
몇 가지 있습니다 :
[user]
name = your_username
email = your_username@users.noreply.github.com
[alias]
# BASIC
st = status
ci = commit
br = branch
co = checkout
df = diff
자세한 내용은 Git 사용자 정의-Git 구성을 참조하십시오.
다음과 같은 명령이 표시되면 git config
...
$ git config --global core.whitespace \
trailing-space,space-before-tab,indent-with-non-tab
... 글로벌 git 설정 파일에 다음과 같이 넣을 수 있습니다.
[core]
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
일회용 구성의 경우 다음과 같은 것을 사용할 수 있습니다 git config --global user.name 'your_username'
If you don't set your git configurations globally, you'll need to do so for each and every git repo you work with locally.
The user.name and user.email settings tell git who you are, so subsequent git commit
commands will not complain, *** Please tell me who you are.
Many times, the commands git suggests you run are not what you should run. This time, the suggested commands are not bad:
$ git commit -m 'first commit'
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Tip: Until I got very familiar with git, making a backup of my project file--before running the suggested git commands and exploring things I thought would work--saved my bacon on more than a few occasions.
I had this as a faulty error message:
git pull
worked fine on the cmd line
git pull
failed in a Perl CGI process (a webhook to auto-deploy from github) with the above error.
Doing a git status
identified a clashing file. Sorting it fixed the problem.
Problem reoccurred later when I changed some config settings.
This time, setting $HOME and $USER env vars fixed it (are unset by default in a CGI process)
I ran into this error message whilst trying to commit some files.
Simply running git fetch
then trying my commit again worked for me.
Have a look at the config file.
Repository > Repository Settings > Edit config file.
Check if the [user]
section exists. If the user section is missing, add it.
Example:
[user]
name = "your name"
email = "your email"
i use heroku cli 1. must use all user name and user email
$git config --global user.email .login email.
$git config --global user.name .heroku name.
- git pull [git url]
- git init
git add *
5 git commit -m "after config user.name ,user email"
git push heroku master
I use Jenkins and ran into this problem when trying to perform a release (which requires a git commit). To fix the issues, I needed to add a Custom user name/e-mail address (see picture) This ensured that when the code was checked out it used my build user's name/email address when performing the release. Note, this configuration is available from the Jenkins Multibranch Pipeline project configuration.
git pull
should not require this. However if the pull causes a merge conflict, then it seems nessecary.
To fix I use: git config --global user.email "you@example.com" and works.
user.mail no work, need to put an E. Typo maybe?
That’s a typo. You’ve accidently set "user.mail" with no "e". Fix it by setting "user.email" in the global configuration with
git config --global user.email "you@example.com"
Found solution here
https://stackoverflow.com/a/14662703
참고URL : https://stackoverflow.com/questions/11656761/git-please-tell-me-who-you-are-error
'Programing' 카테고리의 다른 글
좋은 Python ORM 솔루션은 무엇입니까? (0) | 2020.05.09 |
---|---|
마크 다운 테이블의 줄 바꿈? (0) | 2020.05.09 |
Windows의 로컬 파일 시스템에서 GIT 복제 저장소 (0) | 2020.05.09 |
DLL 파일이란 무엇이며 어떻게 작동합니까? (0) | 2020.05.09 |
varargs 메서드 매개 변수에 ArrayList를 전달하는 방법은 무엇입니까? (0) | 2020.05.09 |