Showing posts with label More. Show all posts
Showing posts with label More. Show all posts

11 June 2021

How to create an alias command in git to display a log in graph?

How to create an alias command in git to display a log in graph?


$alias graph="git log --all --oneline --graph  --decorate"

(I find that it outputs the same as without '--decorate'.)

Note:

'--oneline' is a shorthand for both '--pretty=oneline' and  '--abbrev-commit' used together.

-----------------------------------------------------------------------------------------

I find the 2 following commands are very helpful,

1.

$git log --all --oneline --graph

2.

$git show-branch --all --more=1000

(you can replace 1000 with any number, according to your requirements.)

27 July 2017

How to Stop Scrolling in Linux?

How to Stop Scrolling in Linux?

 ls | more although most people use the ls | less command as it has more features, such as scrolling back as well as forwards, and searching for text.
To scroll forwards a screen press space. To scroll back a screen press 'b'. To search for some text type /something.
And as always man less for more details.

How to Stop Scrolling in MySQL?

How to Stop Scrolling in MySQL?

 > mysql -p [database]
    Enter password:
    mysql> pager more;
    PAGER set to more
    mysql> select * from [table];
    ...data...
    ...data...
    --More--

    You can use 'less', or 'more', or whatever other pager you want to use.