Skip to content

Instantly share code, notes, and snippets.

View nganhkhoa's full-sized avatar

Nguyễn Anh Khoa nganhkhoa

View GitHub Profile
@nganhkhoa
nganhkhoa / gitflow-breakdown.md
Created July 9, 2018 13:48 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@nganhkhoa
nganhkhoa / Sort.cpp
Last active December 31, 2017 04:23
Implementation of some common sorting algorithms in C++
#include <iostream>
#include <vector>
#include <string>
/**
* Intro
* This is a simple gist implement some common sort algorithm
*
* Algorithms included:
*
@nganhkhoa
nganhkhoa / .vimrc
Last active December 31, 2018 11:39
My .vimrc
" @Author: Nguyen Anh Khoa <ng.akhoa98@gmail.com>
" @Date: 2018-12-31 17:48:56
" @Last Modified by: Nguyen Anh Khoa <ng.akhoa98@gmail.com>
" @Last Modified time: 2018-12-31 17:53:01
" PLUGIN {{{
" if empty(glob('~/.vim/autoload/plug.vim'))
" silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
" \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
@nganhkhoa
nganhkhoa / GitHub-Forking.md
Created November 19, 2017 04:22 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j