Comments for break linux https://printf2linux.wordpress.com Technical notes about Computer Programming, Linux/System Administration Thu, 01 Jun 2023 08:42:50 +0000 hourly 1 http://wordpress.com/ Comment on Insert a commit in the past (Git) by [Git] How to inject a commit between some two arbitrary commits in the past? - Pixorix https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-373 Thu, 01 Jun 2023 08:42:50 +0000 http://printf2linux.wordpress.com/?p=215#comment-373 […] out to be quite simple, the answer found here. Suppose you’re on a branch branch. Perform these […]

]]>
Comment on Please, stop abusing “tar” with “zxvf” by Dan0sz https://printf2linux.wordpress.com/2014/09/28/please-stop-abusing-tar-with-zxvf/#comment-254 Sun, 21 Jun 2020 12:43:38 +0000 http://printf2linux.wordpress.com/?p=278#comment-254 Wow, this is awesome. For some reason I’ve never been able to remember -zxvf. So everytime I needed it, I had to google it. And now, I only have to remember xf and cf!

Thanks!

]]>
Comment on Insert a commit in the past (Git) by How to inject a commit between some two arbitrary commits in the past? – Config9.com https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-206 Wed, 24 Jul 2019 14:05:46 +0000 http://printf2linux.wordpress.com/?p=215#comment-206 […] out to be quite simple, the answer found here. Suppose you’re on a branch branch. Perform these […]

]]>
Comment on Insert a commit in the past (Git) by lyzkov https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-69 Thu, 11 Sep 2014 14:35:25 +0000 http://printf2linux.wordpress.com/?p=215#comment-69 In reply to xakon.

Now I see that it makes sense. I didn’t take it into account. In my case stuff that I tried to insert in K depended on B and it had nothing to do with newer commits.

Thank you for clarifying it!

]]>
Comment on Insert a commit in the past (Git) by xakon https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-68 Thu, 11 Sep 2014 14:28:39 +0000 http://printf2linux.wordpress.com/?p=215#comment-68 In reply to lyzkov.

Thank you, lyzkov, for your suggestion!

It is true that some times this approach just works! Especially when you’d like to add a new file in the past or change a couple of lines somewhere else.

The problem is that we usually add staff as the time advances. If I perform another commit (K) at the head of the branch, I will also have the lines added at the previous commits (C, D, E, F) in it. When I’ll try to re-position it in the past, there will be too many conflicts because of the additions in [C, D, E, F] that will appear at their place before actually committed!

]]>
Comment on Insert a commit in the past (Git) by lyzkov https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-67 Thu, 11 Sep 2014 12:44:30 +0000 http://printf2linux.wordpress.com/?p=215#comment-67 It could be done simplier:

git commit -m K
git rebase -i B

and then change commit order on the list.

]]>
Comment on Insert a commit in the past (Git) by Jason Wiener (@jasonwiener) https://printf2linux.wordpress.com/2012/04/09/insert-a-commit-in-the-past-git/#comment-61 Thu, 08 May 2014 04:54:20 +0000 http://printf2linux.wordpress.com/?p=215#comment-61 simplest and easiest walkthru. thanks for this!

]]>
Comment on Notes about apt by xakon https://printf2linux.wordpress.com/2011/08/10/notes-about-apt/#comment-18 Sun, 18 Sep 2011 20:14:31 +0000 http://printf2linux.wordpress.com/?p=41#comment-18 In reply to chrisjrob.

Thank you very much for your points. APT is really a very useful tool with lots of features and functions but, unfortunately, with only adequate documentation. So, I never feel confident with its functions except from the very basics. Yet, I find myself using more and more everyday the command-line tools to administer my systems, rather than the great Synaptic! Tips like yours bring more confidence to people like me.

]]>
Comment on Notes about apt by chrisjrob https://printf2linux.wordpress.com/2011/08/10/notes-about-apt/#comment-17 Sun, 18 Sep 2011 19:54:22 +0000 http://printf2linux.wordpress.com/?p=41#comment-17 I’ve really never found a good use-case for “autoclean”, so I just run “clean”.

Another very handy command is:

apt-get autoremove – which removes packages that were installed with others, but which you no longer require. I have never encountered a problem in doing this YMMV of course.

And worth remembering “purge” to remove applications AND configuration data, otherwise you end up with loads of orphaned configuration files, e.g. :

apt-get purge packagename (instead of apt-get remove packagename).

]]>