Skip to content

01 - Implement APIs for git operations #5

@bakayu

Description

@bakayu

Current Behavior:
NONE

Desired Behavior:
Write APIs for all basic git operations:

  1. Repository Setup & Configuration

    • git init — Initialize a new Git repository.
    • git clone — Clone an existing repository.
  2. File Status & Inspection

    • git status — Show the working directory and staging area status.
    • git log — View commit history.
    • git diff — Show changes between commits, branches, or working directory and index.
    • git show — Display information about a specific commit.
  3. Staging & Committing

    • git add — Stage changes for the next commit.
    • git reset — Unstage a file.
    • git commit -m "message" — Commit staged changes with a message.
    • git commit --amend — Modify the most recent commit.
  4. Branching & Tagging

    • git branch — List, create, or delete branches.
    • git checkout / git switch — Switch branches.
    • git merge — Merge another branch into the current one.
    • git tag — List, create, or delete tags.
  5. Remote Repositories

    • git remote — Manage set of tracked repositories.
    • git fetch — Download objects and refs from another repository.
    • git pull — Fetch and merge changes from a remote repository.
    • git push — Upload local commits to a remote repository.
  6. File & History Management

    • git rm — Remove files from the working directory and staging area.
    • git mv — Move or rename a file.
    • git restore — Restore file contents from a commit or discard changes.
    • git revert — Create a new commit that undoes changes from a previous commit.
    • git stash — Temporarily save changes that are not ready to be committed.
  7. Viewing and Navigating

    • git ls-files — Show information about files in the index and working tree.
    • git blame — Show what revision and author last modified each line of a file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlanguage/goRequires the knowledge of "Go"

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions