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 1023417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:36:56+00:00 2026-05-16T11:36:56+00:00

ok i know this is stupid but atleast im trying :) $result = shell_exec(‘C:/cygwin/bin/bash.exe

  • 0

ok i know this is stupid but atleast im trying 🙂

$result = shell_exec('C:/cygwin/bin/bash.exe /c --login -i git');
var_dump($result);

somehow i cant get git command from cygwin, anyone ?

Adam Ramadhan

edit*

it should give

usage: git [–version]
[–exec-path[=GIT_EXEC_PATH]]
[–html-path]
[-p|–paginate|–no-pager] [–no-replace-objects]
[–bare] [–git-dir=GIT_DIR]
[–work-tree=GIT_WORK_TREE]
[–help] COMMAND [ARGS]

The most commonly used git commands
are: add Add file contents
to the index bisect Find by
binary search the change that
introduced a bug branch List,
create, or delete branches checkout
Checkout a branch or paths to the
working tree clone Clone a
repository into a new directory
commit Record changes to the
repository diff Show changes
between commits, commit and working
tree, etc fetch Download
objects and refs from another
repository grep Print lines
matching a pattern init
Create an empty git repository or
reinitialize an existing one log
Show commit logs merge Join
two or more development histories
together mv Move or rename
a file, a directory, or a symlink
pull Fetch from and merge with
another repository or a local branch
push Update remote refs along
with associated objects rebase
Forward-port local commits to the
updated upstream head reset
Reset current HEAD to the specified
state rm Remove files from
the working tree and from the index
show Show various types of
objects status Show the working
tree status tag Create,
list, delete or verify a tag object
signed with GPG

See ‘git help COMMAND’ for more
information on a specific command.

as the value

  • 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-05-16T11:36:57+00:00Added an answer on May 16, 2026 at 11:36 am
    • -i starts an interactive shell, you don’t want that
    • /c does probably not work
    • use -c command to run a command, you have /c --login
    • try c:\\cygwin\\bin\\git.exe, or the complete path to git.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i know this is a stupid question but i d'ont know how to do
I know this has a stupid solution but, sorry, I'm little bit confused. I
I know this is stupid, but how would I do this? I would like
I know this is a stupid question. But just out of curiosity, is there
I know this might be a stupid question, but here it goes. I always
This is something stupid I probably should know, but Googling fails me: When compiling
This may be a stupid question to ask, but still I need to know
Know this might be rather basic, but I been trying to figure out how
Cocoa newbie here... I know this sounds stupid but I can't find the Bindings
I know this question is going to sound very stupid but here goes nonetheless.

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.