Github actions getting stuck in limbo, never starting. No fear! There is a solution!
Continue readingCategory Archives: Git
To proxy local ssh authentications onto remote
$ ssh [email protected] -A
Ref: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ssh.1
Git: Clean Up Branches
Handy snippet to run, to delete all but the current branch:
$ git branch | xargs git branch -D
$ git remote prune origin
“Error authenticating user: Must specify two-factor authentication OTP code” with NPM Login
If 2-factor-authentication is enabled, an access token is needed in the place of password. Create one according to the steps here with the access for:
- read:packages
- write:packages
- delete:packages
Git: Why Updating Submodules Rewinds Change
When you run git submodule update --remote
in a container repo, you might notice that it says:
Submodule funny_module bf722acd..02dc481d (rewind):
< That awful bugfix
Why the rewind?!
Continue readingHow to Merge When master is Not The Base Branch
If the base branch for your repository is not the default master
, you might have encountered this bizarre Pull Request problem when you try to deploy from base branch onto master
:
Interactive Git Commands Cheatsheet
I found this link in one of StackOverflow answers–very useful in understanding how git works.
Git Submodule Life-Saving Setup
What’s the use of git submodules? It’s mostly useful when you want to work on the code in both the main repo and the sub repo at the same time. Otherwise, a normal dependency management system would suffice.
To have submodules safely set up so that you run into walls less often, do the following:
Continue readingHow to Auto-Deploy to Server on Git Push
Goal:
- If
git push
onmaster
branch - Then sync files onto server and deploy (e.g., running
yarn run build
or any other scripts)
I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue reading