Git clone a repository with submodules

When you clone a Git repository with submodules, you’ll realise that it does not bring down all of the branches and code for the associate submodules. A few steps need to be taken. Step 1: Clone the repository git clone <your_repository_url> Step 2: Init submodules git submodule init Step 3: Update submodules git submodule update

June 6, 2022 · 1 min · Andrew Wu

Git Basic Commands

Checks your Git version git --version Settings your Git user name & email git config --global user.name "Andrew_Wu" git config --global user.email "[email protected]" Checks your configurations git config --list Get Help git help <command> #get help for a git command Creates a new git repo git init # create a new git repo, with data stored in the `.git` directory Shows current repo status git status #tells you what's going on Adds files to stage git add <filename> #adds seleted filename to stagin area git add ....

January 12, 2022 · 2 min · Andrew Wu

How to use Hugo to create your Blog?

Step by step, teach you to create a static Blog, and deploy it to GitHub! Preface I recently had a thought to create my blog, and I used many blog services but ended up with nothing. And this time I made a decision, I want to write something, so after googling, I found “Hugo” this framework, you can use Markdown to create a static blog site. by the way, I don’t want to spend too much time creating a dynamic blog site to keep my thoughts and notes....

January 5, 2022 · 10 min · Andrew Wu