Creating a Test Branch and Merging back the Changes

Image Source: Bunyk - Українська

I made a test branch for the swapping jekyll for hugo article, and then merged the changes back to master, once I had it running.

Checkout test branch

Use the command git checkout -b will allow you to create a local branch for testing.

I will call my new branch test-hugo so the command will be like so:

git checkout -b test-hugo

Some git basics for newbs like me

Git keeps track of all your files, but not just the files, but everything in the repository.

Every commit, git remembers.

“yes yes I know”

However, it really boggled my mind the first time I tried it locally.

I can change to a branch or another point in the history of this repository, and git tucks away the one I’m working on… and the whole directory changes and like wait…

where did all my files just go?

When you push a repository to GitHub they keep a copy too.. but git is really awesome beyond github. If it was invented today they would call it a blockchain :rofl:

Git is Magic!

it sure feels that way, especially the first time I realized what it was doing. I still have a sense of wonder and mystery around Git.

You probably knowbut you don’t need github at all, and I’m learning that a significant portion, of git repositories are never exposed to the public.

Outside of GitHub and its imitators, most contributors to a project don’t have a published version of their repository online at all, skipping that step and saving some time. - What is a Fork?

git checkout -b is just the same as creating a new directory, copy pasting the repo files there to test, and testing it out there. Except git makes it look like magic, and keeps track of your progress!

Merging changes back to the master branch

git checkout master
git pull origin master
git merge test
git push origin master
Infominer's Forked Repositores

An organized list of my forked repositories.

Now that I have both forked and starred

WebPub

Tools n Resources

Indieweb

Crypto

Decentralized Identity

Resources for Content Creation

Here’s some tools to make content creation a little easier.

As per usual, this list will grow and become more organized over time.

Basics

Editors

This thing has extensions for all your coding needs… It is cross-platform, has seamless git integration, and all kind of great features for working with gh-pages repositories (search and replace, etc.).

HackMD - Collaborative Markdown Editor

Public Domain - Stock Images

Images

Converters

Sizes

Optimization

The web loooves big old beautiful high quality images… However, my visitors probably notice the load time of huge images more than I do (though I do notice them).

cross-platform tool for losslessly optimizing PNG and JPG files for web. - https://trimage.org/

command-line utility and a library for lossy compression of PNG images.

The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency. Generated images are compatible with all web browsers and operating systems. - pngquant

Infographics

Text

  • Text Cleaner - cleans up all kinds of text formatting when copying and pasting between applications.
  • wordle - word cloud generator
  • Yahoo Pipes combines feeds “into content and other magical creations”.
  • https://www.pcjs.org - IBM PC simulation that runs in your web browser

Video

  • Amara - create captions for YouTube videos.
  • Wistia - SEO-friendly video hosting.

Plagiarism

  • Copyscape - track if your content is being plagiarized.

^^^ This is the industry standard. It can help to prevent even plagiarizing from yourself!

Archiving

Wiki

Data Visualization

In the first half of this book, we explored free web services that offer easy drag-and-drop tools to create interactive charts and maps, such as Google Sheets, Google My Maps, BatchGeo, Carto, and Tableau Public. But these web services have limited options for designing and customizing your visualizations, and also make you dependent on their web servers to host your work. In this second half of the book, we’ll explore how to copy, edit, and host code templates, meaning pre-written software instructions to create visualizations. With templates, no prior coding skills are necessary. You will learn how to make simple edits to insert your data, customize its appearance, and display it on the web on a site you control. - Data Visualization for All - Modify and Host Code with GitHub by Jack Dougherty & Ilya Ilyankou

Tutes \ Walkthrus

Assorted

Infominer's GitHub Portfolio and HowTo

I learned of this cool project from @bmann. I’ve been wanting a simple way to make a page like this for a while!

It’s really nice to have a place to keep track, because I’m always forgetting how many I even manage!

It might seem intimidating to hear, “Just Fork It!”

However, you’ll see that it’s not much more complex than that.

Step 1

Fork this repository:

Step 2

Go to settings and select publish from master branch:

Step 3

If you already have a web-page, then maybe you aren’t reading this.. If you don’t, then you must name the repository the same as your name on github. So my first website’s repository name is infominer33.github.io since my github username is infominer33. Now it publishes to infominer.id (but also infominer33.github.io) because I have a custom domain, and every other repository I publish is a branch of that first domain.

Since I already have a primary webpage, I change my repository name to repo-portfolio. That way, it lives at:

Step 4

On github pages, _config.yml lives in the root directory of each webpage, this is where you can fine tune settings which repositories display:


projects:
  sort_by: pushed
  # sort_by options:
  #   - pushed
  #   - stars
  limit: 12
  exclude:
    archived: false
    forks: false
    projects:
      - pub-yes
      - yest
      - archive-crypto
      - yest-the-docs
      - bahamas-crypto

you can also configure social media accounts.

social_media:
  website: https://infominer.id/
  keybase: infominer
  telegram: infominer33
  twitter: infominer33
  # behance: your_username
  # dribbble: your_username
  # facebook: your_username
  # hackerrank: your_username
  # instagram: your_username
  # linkedin: your_username
  # mastodon: your_username
  # medium: your_username
  # stackoverflow: your_user_id
  # unsplash: your_username
  # vk: your_username
  # youtube: your_username

and topics of interest:


topics:
  - name: Bitcoin
    web_url: https://github.com/topics/bitcoin
    image_url: https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/bitcoin/bitcoin.png

  - name: Decentralized Identity
    web_url: https://github.com/topics/decentralized-identity
    image_url: https://infominer.id/DIDecentralized/assets/icons/didicon.png

Cool beans, right?

There are also blog features, although I’m not sure I’ll blog there… who knows!?!?

I haven’t looked through the issues, or pull-requests yet to see what folk are working on, or tried to tweak any of the quirks I’ve noticed..

If you want to learn more about GitHub Pages, check out:

GitHub Pages - Starter Pack:Extended Resources
Infominer's Starred GitHub Repositories

Here’s all my starred Github Repositories. Ill star a lot more and continue refining this list as time goes on.

I used this:

and then found this app that makes them even prettier and has an option to push the data to json. (I’ll try this next time)

Infominer33’s Starred GitHub Repositories

GH-Pages

Crypto

Decentralized Identity