LoginSignup
2
1

More than 3 years have passed since last update.

GithubのRemote repository作り方

Last updated at Posted at 2021-02-10

はじめに

RemoteでRepositoryを作る.つまりGithubにてRepositoryを新規作成.

方法1

Localにgit cloneする.1番簡単

git clone https://github.com/username/repositoryname

その後プロジェクトを作成.

方法2

Localでgitディレクトリを作る
remoteのdefault branchがmasterのとき. mainならmasterをmainにする.

mkdir hoge
cd hoge
git init
git remote add origin https://github.com/username/repositoryname
git pull origin master

その後hogeディレクトリにてプロジェクトを作成.

その後

git add .
git commit -m 'initial commit'
git push origin master

のように続いて行く.

2
1
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
2
1