libgit2 / libgit2/libgit2sharp

how can use Commit like $ git commit [file1] [file2] ... -m [message]

Open
#1,896 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

for some reason I need Use Commands.Stage(repository,"*") Stage All File
then if I only want to commit a part of files
How to Implemented this

in git cmd
git commit 1.txt 2.txt -m "1commit"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue's use of Commands.Stage(repository, "*") and inspect the repository's commit and staging APIs for selecting individual files. No source files or tests are named in the report; done means documenting or supporting a commit that includes only the requested files with the supplied message.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.