Skip to content

Instantly share code, notes, and snippets.

View Tetram76's full-sized avatar

Tetram76

  • France
View GitHub Profile
@Tetram76
Tetram76 / gist:a38044b1e58bb14fd91d9e89ca5d53ec
Last active February 2, 2018 10:49 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@Tetram76
Tetram76 / git-import-repository.md
Last active November 7, 2017 21:58 — forked from martinbuberl/git-import-repository.md
Import existing Git repository into another

Import existing Git repository into another

Description

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
@Tetram76
Tetram76 / git-delete-commits.md
Created October 31, 2017 13:30
Delete commits from a branch in Git

Delete commits from a branch in Git

git reset --hard 644b7da
git push origin HEAD --force