1

私はGITに少し慣れていません。SSHで接続する開発インスタンスが提供されています。DEVインスタンスはGITプルとGITプッシュを実行できます。

The instructions given to me are:
git clone git@jira.somedomain.com:/SomeProject
cd SomeProject
git remote add dev git@jira.somedomain.com:/SomeProject
git config --global user.email "<your_email>"
git config --global user.name "Your Name"

私はローカルマシンで開発を行っているので、GITクローンを作成し、GITプッシュとGITプルを実行できるようにしたいと考えています。

問題は私がするときです:

git clone git@jira.somedomain.com:/SomeProject
cd SomeProject
git remote add dev git@jira.somedomain.com:/SomeProject
git config --global user.email "<your_email>"
git config --global user.name "Your Name"

ユーザー名とパスワードが機能しません。

私がするときも

git clone MYUSERNAME@jira.somedomain.com:/SomeProject
cd SomeProject
git remote add dev git@jira.somedomain.com:/SomeProject
git config --global user.email "<your_email>"
git config --global user.name "Your Name"

JIRaアカウントのパスワードを持っていても機能しません。

任意のヒント?

4

1 に答える 1

1

The user.email and user.name fields in git-config are used to put your name into the commit objects, they're not used to authenticate the SSH connection. This is normally done using SSH keys.

Github has instructions for Mac, Windows and linux on how to set these up on your workstation. The "paste your public key into Github" step doesn't apply; in this case, you'll have to put it into the ~/.ssh/authorized_keys file for the user git on your jira.somedomain.com server.

于 2012-05-26T07:43:25.913 に答える