Notice: file_put_contents(): Write of 16184 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50
TechRocks@techrocks P.3566
TECHROCKS Telegram 3566
Сортировка веток Git

Запустив git branch в репозитории, вы обычно получаете список веток в алфавитном порядке. Это может раздражать, когда у вас много веток (если только у вас нет очень жесткой системы именования по номеру тикета или чего-то подобного).

Но это можно изменить!

Выполните в вашем репозитории следующую команду:

git branch --sort=-committerdate


Это отсортирует все ваши ветки по дате их последнего коммита!

Для сортировки доступны следующие опции:

- authordate
- committerdate
- creatordate
- objectsize
- taggerdate

Кроме того, если хотите всегда сортировать по одному из этих параметров, можно установить это в настройках:

git config --global branch.sort -committerdate


Также можно задать псевдоним:

git config --global alias.brcd "branch --sort=-committerdate".

Успешных коммитов!

Источник - «Sorting Git branches».
👍14



tgoop.com/techrocks/3566
Create:
Last Update:

Сортировка веток Git

Запустив git branch в репозитории, вы обычно получаете список веток в алфавитном порядке. Это может раздражать, когда у вас много веток (если только у вас нет очень жесткой системы именования по номеру тикета или чего-то подобного).

Но это можно изменить!

Выполните в вашем репозитории следующую команду:

git branch --sort=-committerdate


Это отсортирует все ваши ветки по дате их последнего коммита!

Для сортировки доступны следующие опции:

- authordate
- committerdate
- creatordate
- objectsize
- taggerdate

Кроме того, если хотите всегда сортировать по одному из этих параметров, можно установить это в настройках:

git config --global branch.sort -committerdate


Также можно задать псевдоним:

git config --global alias.brcd "branch --sort=-committerdate".

Успешных коммитов!

Источник - «Sorting Git branches».

BY TechRocks


Share with your friend now:
tgoop.com/techrocks/3566

View MORE
Open in Telegram


Telegram News

Date: |

When choosing the right name for your Telegram channel, use the language of your target audience. The name must sum up the essence of your channel in 1-3 words. If you’re planning to expand your Telegram audience, it makes sense to incorporate keywords into your name. While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good. Select: Settings – Manage Channel – Administrators – Add administrator. From your list of subscribers, select the correct user. A new window will appear on the screen. Check the rights you’re willing to give to your administrator. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot. To delete a channel with over 1,000 subscribers, you need to contact user support
from us


Telegram TechRocks
FROM American