LoginSignup
0
0

linuxサーバーにgitをインストールし、githubからクローン

Last updated at Posted at 2024-06-09

前提

リモートリポジトリ: github
アクセストークンは作成済み

手順

git のインストール

sudo yum install git

インストール確認

git version

gitの設定

git config user.name "ユーザー名"
git config user.email "メールアドレス"

クローンしたいディレクトリに移動、リポジトリ作成

git init

リモートリポジトリからクローン

git clone https://github.com/"githubアカウント名"/"リポジトリ名".git

上記を実行すると、ユーザー名とパスワードを求められるのでgithubアカウント名と
パスワード...ではなくアクセストークンを入力する。

  • 注意点
    パスワードは入力しても表示されないのでコピペ推奨です。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0