How do I delete a Git branch locally and remotely?
Don't forget to do a git fetch --all --prune on other machines after deleting the remote branch on the server. ||| After deleting the local branch with git branch -d and deleting the remote branch with git push origin --delete other machines may still have "obsolete tracking branches" (to see them do git branch -a). To get rid of these do git fetch --all --prune.
RegEx for matching "A-Z, a-z, 0-9, _" and "." - Stack Overflow
I need a regex which will allow only A-Z, a-z, 0-9, the _ character, and dot (.) in the input. I tried: [A-Za-z0-9_.] But, it did not work. How can I fix it?
How can I iterate over rows in a Pandas DataFrame?
I have a pandas dataframe, df: c1 c2 0 10 100 1 11 110 2 12 120 How do I iterate over the rows of this dataframe? For every row, I want to access its elements (values in cells) by the n...
Find all files containing a specific text (string) on Linux?
How do I find all files containing a specific string of text within their file contents? The following doesn't work. It seems to display every single file in the system. find / -type f -exec grep -H '
A JavaScript error occurred in the main process. Uncaught exception ...
When I try to open VS Code, this error sentences popped up. How can I solve it? A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find ...
git: how to rename a branch (both local and remote)?
I have a local branch master that points to a remote branch origin/regacy (oops, typo!). How do I rename the remote branch to origin/legacy or origin/master? I tried: git remote rename regacy legac...
How to fix SQL Server 2019 connection error due to certificate issue
I have not configured any certificate in SQL configuration. Oh, but you have. SQL Server gets installed with a Self-Signed X.509 certificate which you'll be able to find in Manage Computer Certificates > Personal. In your connection string either set Encrypt=false; to use an unencrypted connection, or TrustServerCertificate=true; to accept the self-signed cert. Or, if you're so inclined ...
How do I clone a specific Git branch? - Stack Overflow
Git clone will clone remote branch into local. Is there any way to clone a specific branch by myself without switching branches on the remote repository?