初期設定

git config —global user.name <ユーザー名>
git config —global user.email <メールアドレス>

リモートリポジトリにpush

作業ディレクトリに移動し、下記実行

git init

共有ディレクトリを使う場合は下記実行

git config --global --add safe.directory /****/*****

https://github.com/settings/tokensでトークンを発行しておく

続いて下記実行

git add *
git commit -m '******'
git branch -m mian
git remote add orign https://{user}:{token}@github.com/{user}/{repos}.git
git push -u origin main

作成済みのリポジトリをダウンロードする

git init
git remote add origin https://{user}:{token}@github.com/{user}/{repos}.git
git branch -m main
git pull origin main

投稿者 blvd

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です