How do I avoid typing “git” at the begining of every Git command?

I’m wondering if there’s a way to avoid having to type the word git at the beginning of every Git command. It would be nice if there was a way to use the git command only once in the beginning after opening a command prompt to get into “Git mode”. For example: git> After which … Read more

How to configure Mac OS X term so that git has color? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. The community reviewed whether to reopen this question 8 months ago and left it closed: Original close reason(s) were not resolved Improve this question I’ve seen … Read more

Delete node_modules folder recursively from a specified path using command line

I have multiple npm projects saved in a local directory. Now I want to take backup of my projects without the node_modules folder, as it is taking a lot of space and can also be retrieved any time using npm install. So, I need a solution to delete all node_modules folders recursively from a specified … Read more

Linux equivalent of the Mac OS X “open” command [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions about general computing hardware and software on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Improve this question I’ve found the “open” command in Mac OS X … Read more

Git error on git pull (unable to update local ref)

I only have branch master and im getting this error every time i try to “git pull”: error: Couldn’t set refs/remotes/origin/master From /var/lib/git/xxx/project ! a0f80ea..49177a3 master -> origin/master (unable to update local ref) and when i do “git pull origin master” i get: error: Couldn’t set ORIG_HEAD fatal: Cannot update the ref ‘ORIG_HEAD’. i have … Read more

Is there a way to continue broken scp (secure copy) command process in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. The community reviewed whether to reopen this question 6 months ago and left it closed: Original close reason(s) were not resolved Improve … Read more

Highlight text similar to grep, but don’t filter out text [duplicate]

This question already has answers here: Colorized grep — viewing the entire file with highlighted matches (23 answers) Closed 6 years ago. When using grep, it will highlight any text in a line with a match to your regular expression. What if I want this behaviour, but have grep print out all lines as well? … Read more