Skip to content

Instantly share code, notes, and snippets.

View icemojo's full-sized avatar

Ye Mon Aung icemojo

View GitHub Profile
@icemojo
icemojo / git: gitignore.md
Created June 10, 2022 14:07 — forked from jstnlvns/git: gitignore.md
a gitignore cheatsheet

Git sees every file in your working copy as one of three things:

  1. tracked - a file which has been previously staged or committed;
  2. untracked - a file which has not been staged or committed; or
  3. ignored - a file which Git has been explicitly told to ignore.

Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:

  • dependency caches, such as the contents of /node_modules or /packages
  • compiled code, such as .o, .pyc, and .class files
@icemojo
icemojo / UpstreamRepos.md
Created October 22, 2021 06:52 — forked from rowland007/UpstreamRepos.md
Describes how to add an upstream remote repo to your forked/cloned repo to get the latest updates.

Keep a Downstream git Repository Current with Upstream Repository Changes

A downstream repository (aka a “fork”) maintainer commonly needs to stay current with upstream work (aka "original"). The case is development continues on the upstream repo while you work on your own origin fork. You want to fetch the upstream changes and apply them to your origin so you don't make conflicts.

image cannot be displayed

The following steps allow you to achieve this on the command line in a local git repository.

Add the Remote Upstream Repository

@icemojo
icemojo / fork-own-repo.md
Created October 17, 2021 09:47 — forked from clintliang/fork-own-repo.md
How to Fork Your Own Project on Github

How to Fork Your Own Project on Github

Steps on how to create fork-repo from your own original-repo

On Github.com

  1. Create a new empty fork-repo repository on Github

On local

  1. Clone fork-repo
@icemojo
icemojo / quick-ref-jekyll-markdown.md
Created February 13, 2021 16:08 — forked from roachhd/quick-ref-jekyll-markdown.md
Jekyll Markdown Quick Reference

#Jekyll Markdown Quick Reference

####Write in simply awesome markdown

layout: post
title: Markdown Style Guide
---