Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія | ||
|
programming:git [2020/02/03 17:10] charon |
programming:git [2024/10/22 12:52] (поточний) charon |
||
|---|---|---|---|
| Рядок 23: | Рядок 23: | ||
| git config --global alias.ci commit | git config --global alias.ci commit | ||
| git config --global alias.co checkout | git config --global alias.co checkout | ||
| + | |||
| + | # Reset any local and staged changes as if nothing happened | ||
| + | git config --global alias.nah "!git reset --hard && git clean -df" | ||
| + | |||
| + | # Add more changes to the latest commit without editing commit message | ||
| + | git config --global alias.amend " | ||
| </ | </ | ||
| Рядок 33: | Рядок 39: | ||
| git config --global core.safecrlf true | git config --global core.safecrlf true | ||
| | | ||
| - | | + | ===== Useful bash aliases ===== |
| + | alias gfo=' | ||
| + | alias gitlog=' | ||
| + | alias gpull=' | ||
| + | alias gpush=' | ||
| + | alias gst=' | ||
| ====== Links ====== | ====== Links ====== | ||
| * [[https:// | * [[https:// | ||
| Рядок 40: | Рядок 52: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||