Confirm message git hub --force



When I try to integrate github with CI and try to run the git push --force command, it stops in a confirmation message, would it be possible to skip this message by confirming the action directly?


It is possible - at the very least you could use the expect package. However, it would be better to not use --force - can you explain why you need it? It is better to not rewrite repo history if you can avoid it.


I also have some commands like “git push -f public master” with -f in my script. What message are you seeing?