Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8552779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:30:07+00:00 2026-06-11T14:30:07+00:00

I have a gitconfig like this: [alias] l = !source ~/.githelpers && pretty_git_log When

  • 0

I have a gitconfig like this:

[alias]
l = "!source ~/.githelpers && pretty_git_log"

When I run it I get this:

[desktop] git l
source ~/.githelpers && pretty_git_log: 1: source: not found
error: cannot run source ~/.githelpers && pretty_git_log: No such file or directory
fatal: While expanding alias 'l': 'source ~/.githelpers && pretty_git_log': No such file or directory

When I add any other shell builtins to test, they run fine:

[alias]
l = "!echo running from the builtin"

[desktop] git l
running from the builtin

Any idea why the source command can’t be found from git? I am running zsh, but changing to bash didn’t seem to make a difference:

[desktop] bash
[desktop] git l
source ~/.githelpers && pretty_git_log: 1: source: not found
error: cannot run source ~/.githelpers && pretty_git_log: No such file or directory
fatal: While expanding alias 'l': 'source ~/.githelpers && pretty_git_log': No such file or directory
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:30:08+00:00Added an answer on June 11, 2026 at 2:30 pm

    The failure comes from the fact that the !<command> construct tries to find a program by that name to run. There is a /bin/echo program (which is different from your shell’s built in echo, but that’s a different story), but there is not a /bin/source (or /usr/bin or any other place). By nature of what source does, it cannot be a separate program.

    Try this instead:

    [alias]
    l = "!sh -c 'source ~/.githelpers && pretty_git_log'"
    

    Change sh to bash (or whatever) as necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like I tried everything to clone http://thechaw.com/source from git with no success.
I have a Git alias that expands to: git log --graph --oneline --all --decorate
It seems like I have inadvertently modified my git config such that when I
NOTE: This question is inspired by the git-svn branching question and NOT a duplicate!
I am not sure how to desribe this. I have an existing rails app.
I have an alias that I cannot find. Typing git help subaddvim gives me:
Can I pass arguments to the alias of a Git command? I have some
I am trying to follow this instruction. I have a local git repo and
I have an entire git repo where I'd like to rename all the files
My usual workflow when working with git, is something like this: create a local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.