Sohail @sohail
293 Total Points
0 Best Answers
2 Posts
11 Snippits
Questions
How to fix corrupt history file .zsh_history?
Asked by Sohail ·
On open terminal, I am getting this error: zsh: corrupt history file /home/harish/.zsh_history This is not allowing search back through the history with CTRL+R and editing previous (...)
0
1
11711
How to make Git “forget” a file that was tracked now it is in .gitignore?
Asked by Sohail ·
In my git repository, there is a file that was being tracked by git. However, now the file is on the .gitignore list. That file keeps appearing in git status after that file is (...)
0
3
3761
What is the difference between `var functionName = function() {}` vs `function functionName() {}`?
Asked by Sohail ·
What are the purposes behind utilizing these two different methods and what are the upsides and downsides of each? Is there anything that can be done with one method that isn't (...)
0
1
2836
How to verify that a string has a substring in JavaScript?
Asked by Sohail ·
Is there any method to check if string has a substring something like String.contains('some string').
0
2
2183
How to remove a specific item from an array?
Asked by Sohail ·
Is there an easy method to delete a particular element from an array? I'm searching for something like this: array.remove(number);
1
2
2278
How to rename a local Git branch?
Asked by Sohail ·
How can I rename a local branch which hasn't been pushed to a remote branch?
0
1
2171