ok-engineering.net
  • タグ: SSH鍵

    検索結果: 1件

    article-thumbnail

    特定プロジェクトのGitを使用する方法

    【概要】特定のプロジェクトに指定したSSH鍵を使用してPUSH / PULLする際の方法をまとめています。使用例としては普段使用しているGitプロジェクトとは別のプロジェクトかつ使用するSSH鍵を変更したい場合になります。【詳細】1. 「.ssh/config」を設定するHost git1Hostname github.comUser gitIdentityFile ~/.ssh/id_rsa2. 「.git/config」を編集する基本的にはプロジェクトのルートディレクトリに存在します。[core] repositoryformatversion 0 filemode true bare false logallrefupdates true ignorecase true precomposeunicode true[remote "origin"] url git1:Gitプロジェクト名 fetch +refs/heads/*:refs/remotes/origin/*3. 確認以下の項目が正常に実行できれば成功です。・Gitにプッシュするgit add .git commitgit push origin ブランチ名・Gitレポジトリをプルするgit pull

    カテゴリ: Git 2020-12-28 02:12:10
    カテゴリ一覧
    1. CentOS23posts
    2. mac15posts
    3. MySQL12posts
    4. Nuxt.js11posts
    5. JS11posts
    6. Linux10posts
    7. Node.js8posts
    8. NGINX7posts
    9. Git5posts
    10. PHP4posts
    11. Redis3posts
    12. GCP2posts
    13. AWS2posts
    14. jQuery2posts
    15. ZABBIX1posts
    16. CSS1posts
    17. Windows1posts
    18. CakePHP1posts
    19. Docker1posts
    © 2020 Copyright: ok-engineering.net