mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Unify spacing
This commit is contained in:
parent
178b145f41
commit
421e7e9c75
11
README_ja.md
11
README_ja.md
@ -1202,7 +1202,7 @@ README.md foo.txt
|
|||||||
```
|
```
|
||||||
|
|
||||||
古い名前(`old-name`)のリモートブランチを削除し、新しい名前(`new-name`)のブランチをプッシュするには次の通りです。
|
古い名前(`old-name`)のリモートブランチを削除し、新しい名前(`new-name`)のブランチをプッシュするには次の通りです。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
(master)$ git push origin :old_name new_name
|
(master)$ git push origin :old_name new_name
|
||||||
```
|
```
|
||||||
@ -2095,7 +2095,8 @@ c10f740 HEAD@{2}: checkout: moving from master to 2.2
|
|||||||
$ git reset --hard 0254ea7
|
$ git reset --hard 0254ea7
|
||||||
```
|
```
|
||||||
|
|
||||||
コマンド `git reset` を使って、マスターブランチを以前の状態に戻すことができます。履歴を間違えて変更してしまった場合の安全策です。
|
コマンド `git reset` を使って、マスターブランチを以前の状態に戻すことができます。
|
||||||
|
履歴を間違えて変更してしまった場合の安全策です。
|
||||||
|
|
||||||
([出典](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog) からコピー・改変しました。)
|
([出典](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog) からコピー・改変しました。)
|
||||||
|
|
||||||
@ -2104,7 +2105,8 @@ $ git reset --hard 0254ea7
|
|||||||
|
|
||||||
### Git Bash
|
### Git Bash
|
||||||
|
|
||||||
上記のコマンドに慣れてきたら、Git Bash のショートカットを作りたくなるはずです。複雑なタスクを短いコマンドで素早く行うことができるようになります。
|
上記のコマンドに慣れてきたら、Git Bash のショートカットを作りたくなるはずです。
|
||||||
|
複雑なタスクを短いコマンドで素早く行うことができるようになります。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
alias sq=squash
|
alias sq=squash
|
||||||
@ -2118,7 +2120,8 @@ function squash() {
|
|||||||
|
|
||||||
### Windows の PowerShell
|
### Windows の PowerShell
|
||||||
|
|
||||||
Windows で PowerShell を使っているなら、エイリアスや関数を作成できます。profile に次のコマンドを追加してください。profile のパスは `$profile` に定義されています。詳しくは Microsoft のドキュメントサイトの [About Profiles](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles) を参照してください。
|
Windows で PowerShell を使っているなら、エイリアスや関数を作成できます。profile に次のコマンドを追加してください。
|
||||||
|
profile のパスは `$profile` に定義されています。詳しくは Microsoft のドキュメントサイトの [About Profiles](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles) を参照してください。
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
Set-Alias sq Squash-Commits
|
Set-Alias sq Squash-Commits
|
||||||
|
Loading…
x
Reference in New Issue
Block a user