but
Commit, push, branch, and manage version control with GitButler. Use for: commit my changes, check what changed, create a PR, push my branch, view diff, create branches, stage files, edit commit history, squash commits, amend commits, undo commits, pull requests, merge, stash
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Commit, push, branch, and manage version control with GitButler. Use for: commit my changes, check what changed, create a PR, push my branch, view diff, create branches, stage files, edit commit history, squash commits, amend commits, undo commits, pull requests, merge, stash work. Replaces git - use 'but' instead of git commit, git status, git push, git checkout, git add, git diff, git branch, git rebase, git stash, git merge. Covers all git, version control, and source control operations.
How to use
Zainstaluj umiejętność GitButler CLI (
but) w swoim środowisku agenta. Upewnij się, że masz dostęp do repozytorium git i narzędziabutjest dostępne w ścieżce systemowej.Przed każdą operacją sprawdź aktualny stan repozytorium, uruchamiając
but status -fv. To polecenie wyświetli listę zmian, gałęzi i identyfikatorów potrzebnych do dalszych operacji.Jeśli chcesz pracować na nowej gałęzi, utwórz ją poleceniem
but branch new nazwa-gałęzi. Zawsze twórz nową gałąź dla nowych zadań, zanim zaczniesz edytować pliki.Po edycji plików commituj zmiany poleceniem
but commit nazwa-gałęzi -m "Twoja wiadomość" --changes id1,id2 --status-after. Identyfikatory zmian (id1,id2) pobierz z wynikubut status -fv. Zawsze dodawaj flagę--status-after, aby zobaczyć stan po operacji.Aby zmienić istniejący commit, użyj
but amend plik-id commit-id --status-after. Jeśli chcesz zmienić kolejność commitów, użyjbut move źródło-id cel-id --status-after.Gdy skończysz pracę, wyślij zmiany na serwer poleceniem
but pushi utwórz pull request, jeśli jest potrzebny. Zawsze pamiętaj: zamiast tradycyjnych poleceńgit, używajbut— to jest główna zasada tej umiejętności.