Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

git-essentials

bởi arnarsson

Git & GitHub
17.3kLượt tải do clawskills.sh công bố
23Sao
19Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Essential Git commands and workflows for version control.

Mô tả

Kỹ năng này làm gì

Covers the core Git commands for version control: staging, committing, branching, merging, and syncing with remotes. Includes workflows for feature branches, hotfixes, and fork syncing, plus advanced operations like rebasing, stashing, and cherry-picking.

Having all essential commands in one reference eliminates switching between official docs, man pages, and Stack Overflow answers mid-task.

Khi nào nên dùng

  • Creating a feature branch and pushing it for code review
  • Undoing a mistaken commit before it reaches the remote
  • Syncing a forked repo with its upstream source
  • Finding which commit introduced a bug with git bisect
  • Cleaning up commit history with interactive rebase before merging

Quy trình ví dụ

ĐẦU VÀO

User asks: how do I create a feature branch, commit changes, and push for review?

AGENT
  1. 1

    Run git checkout -b feature/my-feature to create and switch to a new branch

  2. 2

    Edit files, then stage changes with git add .

  3. 3

    Commit with git commit -m 'Add my feature'

  4. 4

    Push the branch and set upstream with git push -u origin feature/my-feature

ĐẦU RA

Feature branch pushed to remote, ready for a pull request

Cài đặt

clawhub install arnarsson/git-essentials

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết