I have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.0
I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if conditi
I have a C++ application, running on Linux, which I'm in the process of optimizing. How can I pinpoint wh
I would like to change the permissions of a folder and all its subfolders and files in one step (command) in L
I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How
I was writing a simple script in the school computer, and committing the changes to Git (in a repo that was in
My colleague and I are working on the same repository. We've branched it into two branches, each technica
I have an already initialized Git repository that I added a .gitignore file to. How can I refresh the fil
Recently, I have been asked to cherry-pick a commit. So what does cherry-picking a commit in git mean? How d
I used git pull and had a merge conflict: unmerged: _widget.html.erb You are in the middle of a conflicted
I would prefer to write my commit messages in Vim, but it is opening them in Emacs. How do I configure Git to
Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some mor
When I make changes to a file in Git, how can I commit only some of the changes? For example, how could I com
I'm from a Subversion background and, when I had a branch, I knew what I was working on with "These worki
I clone my repository with: git clone ssh://xxxxx/xx.git But after I change some files and add and commit
I created a local branch which I want to 'push' upstream. There is a similar question here on Stack
I started some work on a new feature and after coding for a bit, I decided this feature should be on its own b
Git clone will behave copying remote current working branch into local. Is there any way to clone a
I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remo