A simple script to git pull remotely

For my simple private web projects when there are no script building or bundling, I just don’t need the whole CI/CD pipeline to get stuff working. I only needed git and Github. So here’s how I automate part of my deployment. Before writing this bash script, I would have to first ssh into the remoteContinue reading “A simple script to git pull remotely”

How to set up Git at a directory with an empty repository

Assuming you are already at the corresponding directory: Step 1: git init This command, quote from git documentation, creates an empty Git repository – basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. Step 2: git add -A The git add command adds changes in the working directory to the staging area, or more specifically, theContinue reading “How to set up Git at a directory with an empty repository”