Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - Can you find what client was used to push?

Tags:

git

There are multiple ways to commit and push git commits.

  • command line
  • browser editor (github, gitlab)
  • sourcetree (Update: sourcetree does support --signoff)
  • tower
  • github desktop

By looking at public history of a repo on github, is there any way to determine what percentage of git commits were made with the command line vs a git gui tool?

Reasoning

We are trying to determine how detrimental it would be to mandate that users commit with git commit --signoff (Instead of contributor license agreements). No git gui tools I've found support --signoff

like image 759
spuder Avatar asked Aug 28 '16 03:08

spuder


People also ask

How does git know which repo to push to?

git directory that contains metadata about the repository. That's what Git uses to determine where to push your changes.

How do I find commit history?

`git log` command is used to view the commit history and display the necessary information of the git repository. This command displays the latest git commits information in chronological order, and the last commit will be displayed first.


1 Answers

No, there isn't. Git commits do not capture or store this information.

A Git commit contains a tree ref, an author string, a committer string, a time stamp and a commit message. Nothing else.

You can inspect the contents of a commit (as in, these five pieces of data captured by a commit, not the tree it points to) using

$ git cat-file -p <commit_id>
like image 175
meagar Avatar answered Oct 01 '22 19:10

meagar