GIT-VAR(1) Git Manual GIT-VAR(1)NAME
git-var - Show a Git logical variable
SYNOPSIS
git var ( -l | <variable> )
DESCRIPTION
Prints a Git logical variable.
OPTIONS -l
Cause the logical variables to be listed. In addition, all the variables of the Git configuration file .git/config are listed as well.
(However, the configuration variables listing functionality is deprecated in favor of git config -l.)
EXAMPLE
$ git var GIT_AUTHOR_IDENT
Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
VARIABLES
GIT_AUTHOR_IDENT
The author of a piece of code.
GIT_COMMITTER_IDENT
The person who put a piece of code into Git.
GIT_EDITOR
Text editor for use by Git commands. The value is meant to be interpreted by the shell when it is used. Examples: ~/bin/vi,
$SOME_ENVIRONMENT_VARIABLE, "C:Program FilesVimgvim.exe" --nofork. The order of preference is the $GIT_EDITOR environment variable,
then core.editor configuration, then $VISUAL, then $EDITOR, and then the default chosen at compile time, which is usually vi.
GIT_PAGER
Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the
$GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually
less).
SEE ALSO git-commit-tree(1)git-tag(1)git-config(1)GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-VAR(1)
Check Out this Related Man Page
GIT-VAR(1) Git Manual GIT-VAR(1)NAME
git-var - Show a Git logical variable
SYNOPSIS
git var ( -l | <variable> )
DESCRIPTION
Prints a Git logical variable.
OPTIONS -l
Cause the logical variables to be listed. In addition, all the variables of the Git configuration file .git/config are listed as well.
(However, the configuration variables listing functionality is deprecated in favor of git config -l.)
EXAMPLE
$ git var GIT_AUTHOR_IDENT
Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
VARIABLES
GIT_AUTHOR_IDENT
The author of a piece of code.
GIT_COMMITTER_IDENT
The person who put a piece of code into Git.
GIT_EDITOR
Text editor for use by Git commands. The value is meant to be interpreted by the shell when it is used. Examples: ~/bin/vi,
$SOME_ENVIRONMENT_VARIABLE, "C:Program FilesVimgvim.exe" --nofork. The order of preference is the $GIT_EDITOR environment variable,
then core.editor configuration, then $VISUAL, then $EDITOR, and then the default chosen at compile time, which is usually vi.
GIT_PAGER
Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the
$GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually
less).
SEE ALSO git-commit-tree(1)git-tag(1)git-config(1)GIT
Part of the git(1) suite
Git 1.8.3.1 06/10/2014 GIT-VAR(1)
I want to assign the current user to a variable in my perl script.
My first attempt using Solaris 8 (perl 5) is:
$VAR = system(logname);
However, this assigns 0 to $VAR, and outputs the user to the screen. Does anyone know the command that I need?
Thanks,
seismic_willy (2 Replies)
I tried typing it into google but no results. I don't know what it's called or what it does and when it is used so I must ask:
What does it mean if you have something like...
cmd <!!
cm2
cm3
!
What do those <!! and ! symbols do? When/why do you use them?
I found it inside a bourne... (2 Replies)
hi all,
i have a variable exported as
VAR=ATTRIB
then tried with,
echo "tt" | sed 's/^/$VAR/'
expected result as
ttATTRIB
but obtained only,
$VARtt
i could nt get where i am wrong.
Thanks. (3 Replies)
Hi All,
I am trying to understand and change some code written by some programmer a while ago. There are following three lines of code that I am unable to grasp. Could anybody please help me understand it?
1) cd - > /dev/null
2) fname=`basename "$1"` where $1 = /dirA/dirB/a.txt
... (3 Replies)
Hi
i have a variable with lots of tokens seperated with spaces.
e.g VAR="ABC DEF GHSD GHQS TUTSD JHDTQ QDHQ CDQKDGQ WQUTQD DQUTQD DQJGDQ QDTQD WDQUTQDU QDUGQD QDJGQD DQUTDUQ QDUIDTQ"
i want to separate all of the above tokens and call a script with each of the token e.g sh script.sh <TOKEN>... (4 Replies)
Can someone help me out here. I can't get this piece of code to work. i.e. $ALL_EVENTS does not get interpreted in the if brackets. The first part is the code, the second part is the execution of the code. Note: $ALL_EVENTS does equal 2, but there is no value once passed to the if statement. ... (4 Replies)
Logic of code
if ( $var is a number ) {
Do something
}
else {
Do something else
}
My question is: How do I check if a variable is a number. All the reg ex that I came up with to match this is failing. Please help. (3 Replies)
Hi,
I am exporting the environment variable from config file, but when I echo the variable it does not display any value. Here is the snippet of the code
#!/bin/sh
export ENVIRONMENT_ROOT_DIRECTORY="/cb/$ENVIRONMENT"
echo $ENVIRONMENT_ROOT_DIRECTORY
${JAVA_HOME}/bin/java... (2 Replies)
Hi
i have a variable $VAR =15 14 13,
i want to split this number and store in 3 variables say
$N1=15
$N2=14
$N3=13
i know its simple but my mind is not giving me answers at this point of time. i will be running the code in Solaris Box..please help (3 Replies)
I have a config file of this format:
Company= Alpha Tech
From Email = AlphaTech@Alphatech.com
Pass = Passowrd
To Email = abc@hotmail.com
Smtp=smtp.live.com:587
I want to read these values from this file and use in a command to send email. I am trying grep but it gives full line. I just... (8 Replies)
In AIX, why is it variable VAR becomes true in the condition despite VAR was unassigned and not equal to 1?
In Linux, it was traced as an error as VAR is not declared as variable and expecting an integer as argument.
one.sh
VAR=1
if ; then
echo "One"
fi
if ; then
echo "Two"... (5 Replies)
Dear All,
I have created a environment variable say VAR and initialised it to 0.when i do
echo $VAR it is showing 0.I have written a shell script with one line VAR=$((VAR+1))
and after running the shell script when i echo $VAR my output is still 0.I want to be 1.
when i run the statement... (3 Replies)
Hi All,
Seeking for your assistance on how to put in variables all the commands in /bin
config files: /home/test/config_file/config.cfg
cat /home/test/config_file/config.cfg
ECHO=/bin/echo
LS=/bin/lsMain script
cat test.sh
source=/home/test/config_file/config.cfg
ECHO=$ECHO
LS=$LS#i... (3 Replies)
i am running solaris 10 and they want GIt on there.
The instructions that I found on line want me to use pkgutil which i don't have either.
Most packages that i have installed come from the cd and are labeled SUNW...
I see one instruction to add
pkgadd -d http://get.opencsw.org/now
... (4 Replies)