Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git stats in Windows 7

Tags:

git

windows-7

https://github.com/trybeee/GitStats

I already have all of these,Python (>= 2.4.4) (python3 is not supported),Git (>= 1.5.2.4) ,Gnuplot (>= 4.0.0),and a git repository (bare clone will work as well). And I also cloned the gitstats repository.

According to the tutorial, I should run $ ./git-stats /mnt/src/git/project ~/public_html/project. This looks like basing on Linux system, but I'm using W7.

The path of my repository is C/Users/XX/.git/refs/remotes/orgin/firstbranch.

Here are my questions. Where should I run the codes? Should I run them in git bash?

After I typed git-stats C/Users/XX/.git/refs/remotes/orgin/firstbranch public_html/project in git bash.
It showed:
sh.exe": git-stats: command not found

If I go to the file of gitstats ,open git bash and run the codes, it says "No such file or directory".

I have no idea about how to use gitstats. It seems too simple to be discussed for most of people, so I can't find a lot of article about it.

Please help! Thanks!!

like image 477
fuiiii Avatar asked Dec 29 '12 06:12

fuiiii


People also ask

How do I use git status?

To check the status, open the git bash, and run the status command on your desired directory. It will run as follows: $ git status.

How do I use git bash on Windows?

Launch Git Bash console by clicking on the Start button, type git, and click on Git Bash. 2. Run the below git config command to add your name ( YourName ) as your git username ( user.name ). The git config command administers configuration variables that control how Git looks and operates.


1 Answers

  1. On Windows use python git-stats instead of just git-stats. You may also create a git-stats.cmd file with this only line: @call python D:\Path\To\GitStats\git-stats %*

  2. You may use ordinary Windows paths with backslashes. You also don't have /mnt on Windows.

  3. Point to your repository root, where the .git folder is, not to a branch.

So you are going to invoke the following command (assuming you are in the GitStats directory and python is on your PATH):

python git-stats C:\Users\XX\ C:\Users\XX-stats

cmd shell

like image 150
utapyngo Avatar answered Oct 06 '22 14:10

utapyngo