I have this bad habbit where if I see unformatted code, I format it.  This is bad because the benefit of the change is not directly related to the user story (akak ticket) I'm working on.  So I am currently on this branch:  feature/add-ability-to-manage-notes   I have made many changes and made many commits. On of these files had no relevant change other than my OCD with regards to the formatting.  The changes and commits are all local to my machine and have not been pushed to remote origin  I want to undo that one file to make it match the develop branch, so that when I create my PR, it doesn't get listed among the changed things. This way, it will be easier for my colleagues when they review my PR in GitLab.  How do achive this in using Git command line?
I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous version.   I have done a git log along with a git diff to find the revision I need, but just have no idea how to get the file back to its former state in the past.
Sum of the series $\frac{1}{2\cdot 4}+\frac{1\cdot3}{2\cdot4\cdot6}+\dots$ I am recently struck upon this question that asks to find the sum until infinite terms $$\frac{1}{2\cdot 4}+\frac{1\cdot3}{2\cdot4\cdot6}+\frac{1\cdot3\cdot5}{2\cdot4\cdot6\cdot8}+.....∞$$ I tried my best to get something telescoping or something useful, but I failed. I even made a recurrence as $t_n=t_{n-1}\frac{2n-1}{2n+2}$, but this question was expected to be done with simple logic of series (Also that the recurrence on solving gives a higher order charasteristic polynomial, which might be difficult to solve without calculator). So, thus I ended up being confused with this question. So, can anyone prode a small solution to this (might be easy) problem  . A symmetry of graph $X$ is a permutation of the vertices that also happens to be a permutation of the induced edges. In particular, the distances between vertices are preserved by a symmetry. Show that the set of symmetries of $X$ is a permutation group of $\operatorname{V}(X)$. Compute the cycle index of the group for the Petersen graph.   Alright I am super confused. I have no idea how to even start. Can someone point me in the right direction. How do I show that something is a permutation group? How do I compute the cycle index of a graph? Italian keyboard: entering tilde (~) and backtick (`) characters without changing keyboard layout How do I add arrowheads to circular arcs? Prove that $f(x)\in \mathbb{Z}[x]$ such that $f(0)$ and $f(1)$ are odd has no integer roots Should searching by default be AND or OR? On my website I have a search bar.  It's powered by Lucene.net.  I have a requirement to make search be a substring case insensitive search, with direct hits appearing before substrings.  What I don't know, however, is when a user searches for a multi-word item--say "Chocolate Milk"--should that be treated under the hood as an AND or OR search?  As an example:  *chocolate* AND *milk*   vs  *chocolate* OR *milk*   The requirement right now is to treat this as an AND, but I'm not sure if that's the right way to go about it.  What would be the best in terms of UX?  I would think the best thing to do would be an OR search, with items containing both keywords appearing before items containing only one of the keywords.  Thoughts?  EDIT: The types of items being searched are medical supplies, with very cryptic names. Computational complexity of Fibonacci Sequence Give permission to debian-transmission to write into a www-data directory What makes the inside of a shape the inside? I have a doubt. I need help.  Can the basic axioms of equality be presented as "open axioms"?  I) (reflexivity) $\qquad x = x$              II)  (Substitutivity) $\qquad (x = y) \to \big(F (x, x) \to F (x, y)\big)$ I have this setup:   The mesh is only the visible top side, with a mirror modifier for the bottom part. Now I want to unwrap it like in the picture. I want the inner circle (red) to go to the top of the UV map...  The problem is that no matter what automatic unwrapping I use, it never works as intended.  The closest I've gotten was by using "follow quads", but that skewed the UV map a lot:   I used the result from the second image and manually adjusted the vertices with a lot of scaling and "align auto", but its very far from perfect as you can see in the first image.  Here's what I want exactly:   The uv vertices should be distributed evenly (horizontally) The middle line (yellow) should be on a "natural" y height (so there's no stretching)   I hope it's clear what I want to achieve. I'm sure there must be some automatic way to perfectly align and distribute the UVs in this way.  By the way: If you look closely you can see that I already placed a uv seam (aligned with the green y axis in the screenshot) but that didn't really help. How distorted does the Andromeda Galaxy appear to us due to the speed of light? The Andromeda Galaxy appears to us at an angle to the galactic disk, i.e. we are not in the Andromeda Galaxy disc's plane, nor are we near the direction that the galaxy's pole points. Therefore, due to the geometry and distances involved, it would seem to me that we are seeing the 'far edge' a few thousand years later than we are seeing the 'near edge'. How far can a galaxy spin during that those few thousand years, and therefore how distorted are we seeing Andromeda? Can we infer how Andromeda or other large spiral galaxies seen at an angle would look if light were to travel instantly?  Might this phenomenon account for some of the unusual spin properties measured in galaxies, which is attributed to dark matter? Measures of variable importance in random forests I've been playing around with random forests for regression and am having difficulty working out exactly what the two measures of importance mean, and how they should be interpreted.  The importance() function gives two values for each variable: %IncMSE and IncNodePurity. Is there simple interpretations for these 2 values?  For IncNodePurity in particular, is this simply the amount the RSS increase following the removal of that variable? I am applying for a UK visa. Can I show 5 months worth of bank statements for the UK visa, or is 6 months a requirement, as its not mentioned on their website?  There are no appointment dates showing in April. Is there any time limit in which we have to book an appointment after paying the fee? Why can't I chown a VirtualBox shared folder? The following is an real analysis qualifying exam problem that I cannot solve:  Suppose $X$ is a Banach space and that $(x_n)$ converges weakly to $x$. Show that $\liminf ||x_n|| \geq ||x||$.  Using the Uniform Boundedness Principle I can show that $\sup_{n \in \mathbb{N}} ||x_n -x||$ is finite. Using Alaoglu's Theorem I can show that some subset of $(x_n)$ converges in norm to $x$. I feel like I am close with this but cannot seem to finish the problem. When should you use WP_Query vs query_posts() vs get_posts()? It seems like half the tutorials in the  and around the blogosphere use  and half use . They all do similar things, so when should I use one over the others? On the hardness of data to learn Almost in all texts which are discussing theorems of statistical learning, they assume analyzing arbitrary unknown distribution (the worst case). But in practice different problems (different data) have different levels of hardness, for example linear separable data is easier to learn than the data that are less (or not) separable by hyperplanes.  Are there any works on formalizing the hardness of data (similar to the stuff done in complexity theory)  Note: I am not sure if the same as analyzing VC-dimension or not, but I think it is not. do not optimize/remove html I would like to have a page with some html content in it that CK Editor does not seem to support, in particular: I want to have a little &lt;form tag with a couple of &lt;input fields. I can enter it in Switch to plain text editor mode and save from there and it will keep the elements but when I want to edit the page, it'll go back to the Switch to rich text editor and remove my &lt;form html items. How can i set CD Editor to not remove any html it may not be able to render?  Thank you! Unable to lock the administration directory (/var/lib/dpkg/), are you root? I get this error in Lubuntu 12.04 when I try to update in terminal:  $ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?