git/再初期設定
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
外す → 新規開始 → GitHub 連携(新バージョンとして)
** 1) 既存Gitを外す(履歴もremoteも全部捨てる。GitHub と...
rm .git -Recurse -Force
確認
git status
** 2) 動作確認(この時点でサイトが動くことを確認) [#n88f...
** 3) 新しく初期化 [#i8df151a]
git init
** 4) .gitignore を先に作る(git add の前) [#c82c002b]
site/config.local.php
site/config.*.local.php
.env
uploads/
cache/
tmp/
logs/
img/cache/
img/thumbs/
.DS_Store
Thumbs.db
.vscode/
.idea/
scc/
vendor/
*.log
** 5) 初回コミット(新バージョンの基準点) [#ec892384]
git add .
git status
git commit -m "initial commit (new version)"
** 6) GitHub に新規リポジトリ作成(空で作る:README等は作...
** 7) GitHub と連携 [#n7c4659c]
git remote add origin https://github.com/USER/NEW_REPO.git
git branch -M main
git push -u origin main
** 8) 以降の運用 [#z30caecb]
git add .
git commit -m "change"
git push
終了行:
外す → 新規開始 → GitHub 連携(新バージョンとして)
** 1) 既存Gitを外す(履歴もremoteも全部捨てる。GitHub と...
rm .git -Recurse -Force
確認
git status
** 2) 動作確認(この時点でサイトが動くことを確認) [#n88f...
** 3) 新しく初期化 [#i8df151a]
git init
** 4) .gitignore を先に作る(git add の前) [#c82c002b]
site/config.local.php
site/config.*.local.php
.env
uploads/
cache/
tmp/
logs/
img/cache/
img/thumbs/
.DS_Store
Thumbs.db
.vscode/
.idea/
scc/
vendor/
*.log
** 5) 初回コミット(新バージョンの基準点) [#ec892384]
git add .
git status
git commit -m "initial commit (new version)"
** 6) GitHub に新規リポジトリ作成(空で作る:README等は作...
** 7) GitHub と連携 [#n7c4659c]
git remote add origin https://github.com/USER/NEW_REPO.git
git branch -M main
git push -u origin main
** 8) 以降の運用 [#z30caecb]
git add .
git commit -m "change"
git push
ページ名:
1