-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/applejxd/applejxd.github.io
- Loading branch information
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ git config --global user.email [email protected] | |
|
||
[GitHub で匿名アドレスを使う場合](https://qiita.com/sta/items/982ab68e8220a81d485c) | ||
|
||
### リモートリポジトリ操作 | ||
### リモートリポジトリ設定 | ||
|
||
- [SSH 認証の github 設定](https://zenn.dev/keikuchen/articles/cffa31d69ecaae7e91d7) | ||
- リモートリポジトリの登録 | ||
|
@@ -75,19 +75,28 @@ git config --global user.email [email protected] | |
|
||
### ブランチ操作 | ||
|
||
- リモートブランチをチェックアウト | ||
```shell | ||
# リモートブランチをチェックアウト | ||
git checkout -b develop origin/develop | ||
|
||
```bash | ||
git checkout -b develop origin/develop | ||
``` | ||
# デフォルトブランチの変更:master → main | ||
git branch -m master main | ||
git fetch origin | ||
git branch -u origin/main main | ||
|
||
- デフォルトブランチの変更:master → main | ||
# 一部まで push | ||
git push origin [commit_ID]:refs/heads/[branch_name] | ||
``` | ||
|
||
```bash | ||
git branch -m master main | ||
git fetch origin | ||
git branch -u origin/main main | ||
``` | ||
### パッチ作成 | ||
|
||
```bash | ||
# コミットしていない変更をパッチ化 | ||
git diff > patch.patch | ||
|
||
# 既存のコミットをパッチ化 | ||
git format-patch -3 HEAD | ||
``` | ||
|
||
### リセット | ||
|
||
|