0
0

(自分用)バックアップをとったリポジトリのgitを新しく管理する手順

Posted at

1.まずバックアップをとっているディレクトリのふるいgitを切り離す。
rm -rf .git
このコードで現在のディレクトリからgitを一旦削除することができる。

次に、新しくgitリポジトリを作成。

mkdir "ディレクトリ名"
git init

これで完了。

次に、リモートリポジトリ(github)の設定
git remote add origin <リモートリポジトリのURL>

これで、git add . して コミット、プッシュすれば完了。

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