Git log doesn't show anything on console


lazy

I am using Kubuntu 16.4. lts. Recently, I updated the package with the following command:

sudo aptitude update && sudo aptitude upgrade

Since then, the command git logno longer provides any output.

git log > /tmp/gitlog.txtHowever, when used , the file contains the desired output.

How can I get it back to git logwork?

Feng

Make sure you are in your local git repo and make sure to commit at least once.

Your folder should be included .git/in it.

git logNothing is displayed on the console, but git log > /tmp/gitlog.txtthe commit is written to the file in the pipeline.

It might be a pager issue that blocks output on the console, but doesn't apply when redirecting to a file.
Use check git --no-pager log.


The OP lazyboy confirmed the issue about the pager in the comments :

The idea of ​​using a paginator can help me to check the system.
Some startup scripts changed the pager in my system and affected git.

Related


Git log doesn't show anything on console

lazy I am using Kubuntu 16.4. lts. Recently, I updated the package with the following command: sudo aptitude update && sudo aptitude upgrade Since then, the command git logno longer provides any output. git log > /tmp/gitlog.txtHowever, when used , the file c

Git log doesn't show anything on console

lazy I am using Kubuntu 16.4. lts. Recently, I updated the package with the following command: sudo aptitude update && sudo aptitude upgrade Since then, the command git logno longer provides any output. git log > /tmp/gitlog.txtHowever, when used , the file c

git log --oneline doesn't work, doesn't show anything

Abraham In vscode, I have a repo with two commits, ie. "first commit"and "second commit". I am using git through vscode powershell terminal. git logworks fine, it returns commit ffd6d05ac4b94fa5a85c9ca43798e436df8b3097 Author: myname <myemail> Date: Sat Mar

console.log doesn't show anything but returns undefined

Albisia I wrote a script that captures all the sentences I'm learning on duolingo into a console.log output. It worked fine until recently, when console.log started to behave in a weird way: console.log("Hello\tWorld") undefined Nothing I type in console.log

node js console.log doesn't show anything

username I'm trying to scrape a web page using node js, I think I've written the code and am able to run it without any errors, but the problem is that no matter what I do, nothing is printed to the console. any errors. what reason? Here's what I'm going to pa

console.log doesn't show anything but returns undefined

Albisia I wrote a script that captures all the sentences I'm learning on duolingo into a console.log output. It worked fine until recently, when console.log started to behave in a weird way: console.log("Hello\tWorld") undefined Nothing I type in console.log

node js console.log doesn't show anything

username I'm trying to scrape a web page using node js, I think I've written the code and am able to run it without any errors, but the problem is that no matter what I do, nothing is printed to the console. any errors. what reason? Here's what I'm going to pa

console.log doesn't show anything but returns undefined

Albisia I wrote a script that captures all the sentences I'm learning on duolingo into a console.log output. It worked fine until recently, when console.log started to behave in a weird way: console.log("Hello\tWorld") undefined Nothing I type in console.log

Why doesn't git log show anything new after git fetch?

fair I'm learning to use the Git remote by reading the relevant sections of the Pro Git manual . If you clone a repository, the command automatically adds that remote repository under the "origin" name. So git fetch originget all new work that has been pushed

Why doesn't git log show anything new after git fetch?

fair I'm learning to use the Git remote by reading the relevant sections of the Pro Git manual . If you clone a repository, the command automatically adds that remote repository under the "origin" name. So git fetch originget all new work that has been pushed

Git gui doesn't show anything

Ash My Git GUI was working fine until a few days ago. It shows the modified filename in blue on the left and the changes on the right. As of today, my Git GUI doesn't show anything on the screen. I'm not sure what I did the other day. I have tried uninstalling

Why doesn't git branch show anything?

Jepet I am using github for repository work. When executed git branch, nothing is displayed on the screen (see image below). git branch When I execute git status, it is said that I am in a branch. git status So there are some branches and I'm working with them

Why doesn't git branch show anything?

Jepet I am using github for repository work. When executed git branch, nothing is displayed on the screen (see image below). git branch When I execute git status, it is said that I am in a branch. git status So there are some branches and I'm working with them

Why doesn't git branch show anything?

Jepet I am using github for repository work. When executed git branch, nothing is displayed on the screen (see image below). git branch When I execute git status, it is said that I am in a branch. git status So there are some branches and I'm working with them

Why doesn't git branch show anything?

Jepet I am using github for repository work. When executed git branch, nothing is displayed on the screen (see image below). git branch When I execute git status, it is said that I am in a branch. git status So there are some branches and I'm working with them

Why doesn't git branch show anything?

Jepet I am using github for repository work. When executed git branch, nothing is displayed on the screen (see image below). git branch When I execute git status, it is said that I am in a branch. git status So there are some branches and I'm working with them

Why doesn't my console.log output anything here?

Adam Cole So I am trying to make a request to the API using a foreach loop on the array. The array contains a list of strings to place in the request var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); var url

Why doesn't my console.log output anything here?

Adam Cole So I am trying to make a request to the API using a foreach loop on the array. The array contains a list of strings to place in the request var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); var url

Why doesn't my console.log output anything here?

Adam Cole So I am trying to make a request to the API using a foreach loop on the array. The array contains a list of strings to place in the request var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); var url

Why doesn't my console.log output anything here?

Adam Cole So I am trying to make a request to the API using a foreach loop on the array. The array contains a list of strings to place in the request var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); var url

Status doesn't show anything on webpage but in console React.js

Facebook Facebook logo Sign up for Facebook to connect with Abdul Hanan Asif I've started creating a web application in React.js, like Facebook Messenger. I get some input from the user and then use the state and it works fine. I am showing the input in the co

Status doesn't show anything on webpage but in console React.js

Facebook Facebook logo Sign up for Facebook to connect with Abdul Hanan Asif I've started creating a web application in React.js, like Facebook Messenger. I get some input from the user and then use the state and it works fine. I am showing the input in the co

Status doesn't show anything on webpage but in console React.js

Facebook Facebook logo Sign up for Facebook to connect with Abdul Hanan Asif I've started creating a web application in React.js, like Facebook Messenger. I get some input from the user and then use the state and it works fine. I am showing the input in the co

Why doesn't git diff show anything for unmerged paths

Katik Anand When merging two branches, many times the merge fails and I have to resolve the differences individually. Some files are merged successfully and I can see the difference: git diff --staged <merged-file> The problem is that for unmerged paths, when

nginx doesn't log anything

copper box I'm running a FreeBSD 9-Stable server with nginx. My config is here: user www www; worker_processes 5; error_log /var/log/nginx/nginx-error.log; events { worker_connections 1024; } http { include mime.types; include fastcgi_params; i

nginx doesn't log anything

copper box I'm running a FreeBSD 9-Stable server with nginx. My config is here: user www www; worker_processes 5; error_log /var/log/nginx/nginx-error.log; events { worker_connections 1024; } http { include mime.types; include fastcgi_params; i

ViewPager doesn't show anything

Kamal Upasena: I'm creating a view pager with a custom view pager adapter, but when I run the project, I can't see anything public class CustomAdapter extends PagerAdapter { private List<NewsObject> newsObjects; private Activity mActivity;

RecyclerView doesn't show anything

Developer I want to use display CardViewas data list RecyclerView. But instead I get a black screen ( RecyclerViewpartially). I want to display some text and images. CheeseDetailActivityexp.java public class CheeseDetailActivityexp extends AppCompatActivity im

ViewPager doesn't show anything

Kamal Upasena: I'm creating a view pager with a custom view pager adapter, but when I run the project I can't see anything public class CustomAdapter extends PagerAdapter { private List<NewsObject> newsObjects; private Activity mActivity;