Comments (11)
Interesting. What about just git fame
or git fame .
?
from git-fame.
When I do this, the soft seems to be a bit lost and tries to find something in /var/lib :
nicolas@nicolas-XXXXXX:/var/www/mobile$ git fame
fatal: not a git repository (or any parent up to mount point /var/lib)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Processing: 100%|###################################################################################| 1/1 [00:00<00:00, 321.92file/s]
BUG: environment.c:183: git environment hasn't been setup
Total
| Author | loc | coms | fils | distribution |
|----------|-------|--------|--------|-----------------|
nicolas@nicolas-XXXXXX:/var/www/mobile$ git fame .
fatal: not a git repository (or any parent up to mount point /var/lib)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Processing: 100%|###################################################################################| 1/1 [00:00<00:00, 453.68file/s]
BUG: environment.c:183: git environment hasn't been setup
Total
| Author | loc | coms | fils | distribution |
|----------|-------|--------|--------|-----------------|
nicolas@nicolas-XXXXXX:/var/www/mobile$
from git-fame.
ah I think this is an issue with the snap
installation not working on mounted directories.
You can try installing using pip
instead...
snap remove git-fame
python -m pip install git-fame
from git-fame.
I tried but it is not finding anywhere git-fame and not installing it ( but requirments seems ok). At first I tried installing it through pip but it wasnt doing anything so I moved to snap.
nicolas@nicolas-XXXXX:/var/www/mobile$ snap remove git-fame
git-fame removed
nicolas@nicolas-XXXXX:/var/www/mobile$ python -m pip install git-fame
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
nicolas@nicolas-XXXXX:/var/www/mobile$ python3 -m pip install git-fame
Requirement already satisfied: git-fame in /home/nicolas/.local/lib/python3.8/site-packages (1.15.0)
Requirement already satisfied: argopt>=0.3.5 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.7.0)
Requirement already satisfied: tabulate in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.8.9)
Requirement already satisfied: tqdm>=4.44.0 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (4.62.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from git-fame) (45.2.0)
nicolas@nicolas-XXXXX:/var/www/mobile$ git-fame
bash: /snap/bin/git-fame: No such file or directory
nicolas@nicolas-UX530UX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command
from git-fame.
I re did this fyi to set up properly the alias, but it seems to trigger issues with git and python3 :
nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "!python -m gitfame"
git config --global alias.fame "python3 -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command
from git-fame.
the alias shouldn't be required on Linux. You just needed to restart your terminal after python3 -m pip install git-fame
You can undo the alias stuff with git config --global --unset alias.fame
from git-fame.
I closed and re opened my terminal window, and I still have this :
nicolas@nicolas-XXXX:/var/www/bo-g4l$ git fame
git: 'fame' is not a git command. See 'git --help'.
The most similar command is
blame
nicolas@nicolas-XXXX:/var/www/bo-g4l$ cd /var/www/mobile
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
git: 'fame' is not a git command. See 'git --help'.
The most similar command is
blame
nicolas@nicolas-XXXX:/var/www/mobile$ python3 -m pip install git-fame
Requirement already satisfied: git-fame in /home/nicolas/.local/lib/python3.8/site-packages (1.15.0)
Requirement already satisfied: argopt>=0.3.5 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.7.0)
Requirement already satisfied: tabulate in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (0.8.9)
Requirement already satisfied: tqdm>=4.44.0 in /home/nicolas/.local/lib/python3.8/site-packages (from git-fame) (4.62.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from git-fame) (45.2.0)
nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "python3 -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command
If I must reboot my machine, it will be a bit complex at moment with all the stuff I have opened ( and I restart my machine every trimester :) )
from git-fame.
reboot definitely not required. Reopening the terminal should've been enough but seems like your git
version doesn't like it.
- windows:
git config --global alias.fame "!python3 -m gitfame"
- linux:
git config --global alias.fame '!python3 -m gitfame'
should fix it.
from git-fame.
I tried distinct typos but nothing seems to pas through :
nicolas@nicolas-XXXX:/var/www/mobile$ git config --global alias.fame "!python3 -m gitfame"
git config --global alias.fame "python3 -m pip install git-fame -m gitfame"
nicolas@nicolas-XXXX:/var/www/mobile$ gitfame
Command 'gitfame' not found, did you mean:
command 'git-fame' from snap git-fame (1.15.0)
See 'snap info <snapname>' for additional versions.
nicolas@nicolas-XXXX:/var/www/mobile$ git-fame
Command 'git-fame' not found, but can be installed with:
sudo snap install git-fame
nicolas@nicolas-XXXX:/var/www/mobile$ git fame
expansion of alias 'fame' failed; 'python3' is not a git command
from git-fame.
Ah srry, was giving you the Windows version. The quotes have to be single:
git config --global alias.fame '!python3 -m gitfame'
from git-fame.
Its all good now!
Thanks
I think you can update your doc for alias of those geeks on linux :)
Many thanks
Nicolas
from git-fame.
Related Issues (20)
- Fails to count LOC and files when passing multiple repos HOT 1
- Excluding a folder HOT 4
- Is it support for counting non-empty, non-commented lines of code?
- Get lines of code by file extension for a particular author? HOT 3
- How does it work? Do deleted lines count? HOT 2
- Recursing stats blocked HOT 2
- What is `--loc=surv`? HOT 6
- `--loc=surv` has more loc than `--loc=ins,del` (counts bin files)
- Option for Case-Insensitivity (`CI`) HOT 1
- explain in details the metrics
- JSON Output
- "Dubious ownership in repository" error running Docker container
- [feature] Use shtab to generate shell completion
- wrong loc after author change or repo import HOT 3
- excl appears to have no effect HOT 3
- Count hours based on commits in the GitHub pull requests
- Is it possible to add -until? HOT 1
- ignore "maintenance" user HOT 3
- feature: emit both email and name HOT 3
- --excl documentation missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-fame.