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
@ -2095,7 +2095,8 @@ c10f740 HEAD@{2}: checkout: moving from master to 2.2
|
||||
$ git reset --hard 0254ea7
|
||||
```
|
||||
|
||||
コマンド `git reset` を使って、マスターブランチを以前の状態に戻すことができます。履歴を間違えて変更してしまった場合の安全策です。
|
||||
コマンド `git reset` を使って、マスターブランチを以前の状態に戻すことができます。
|
||||
履歴を間違えて変更してしまった場合の安全策です。
|
||||
|
||||
([出典](https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog) からコピー・改変しました。)
|
||||
|
||||
@ -2104,7 +2105,8 @@ $ git reset --hard 0254ea7
|
||||
|
||||
### Git Bash
|
||||
|
||||
上記のコマンドに慣れてきたら、Git Bash のショートカットを作りたくなるはずです。複雑なタスクを短いコマンドで素早く行うことができるようになります。
|
||||
上記のコマンドに慣れてきたら、Git Bash のショートカットを作りたくなるはずです。
|
||||
複雑なタスクを短いコマンドで素早く行うことができるようになります。
|
||||
|
||||
```sh
|
||||
alias sq=squash
|
||||
@ -2118,7 +2120,8 @@ function squash() {
|
||||
|
||||
### 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
|
||||
Set-Alias sq Squash-Commits
|
||||
|
Loading…
x
Reference in New Issue
Block a user