Comments on: How to Manage /etc with Version Control Using Etckeeper on Linux https://www.tecmint.com/manage-etc-with-version-control-using-etckeeper/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 28 Nov 2023 04:04:39 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/manage-etc-with-version-control-using-etckeeper/comment-page-1/#comment-2108236 Tue, 28 Nov 2023 04:04:39 +0000 https://www.tecmint.com/?p=33889#comment-2108236 In reply to zpg.

@Zpg,

If you want to remove all of the daily commits from a Git repository, you can use the following command, which will remove the last 5 commits.

git rebase -i HEAD~5

After removing commits, you’ll need to force push the changes to the remote repository.

git push origin  --force
]]>
By: zpg https://www.tecmint.com/manage-etc-with-version-control-using-etckeeper/comment-page-1/#comment-2108059 Mon, 27 Nov 2023 18:56:27 +0000 https://www.tecmint.com/?p=33889#comment-2108059 Is there a simple way to remove all of just daily commits? If not, how do I start from scratch again?

]]>
By: Rogelio AlvHer https://www.tecmint.com/manage-etc-with-version-control-using-etckeeper/comment-page-1/#comment-1517289 Mon, 07 Jun 2021 20:57:33 +0000 https://www.tecmint.com/?p=33889#comment-1517289 It is very usefull, although i do not understand.

$ sudo etckeeper vcs status 

It show me which files changed:

  • modified: hosts
  • modified: nginx/vhosts.d/phpmyadmin.conf

Ok, thats correct, next if I do agree commit changes

$ sudo etckeeper commit "changed hosts and phpmyadmin config files"

changed hosts? that is the syntax, PHPMyAdmin config files? your example shows other commands: no changes added to commit (use “git add” and/or “git commit -a” )

So, which are command corrects?

Thanks in advanced
Rogelio

]]>