Skip to content

Instantly share code, notes, and snippets.

View sergeimuller's full-sized avatar

Sergei Müller sergeimuller

View GitHub Profile
@sergeimuller
sergeimuller / git_notes.md
Created November 22, 2019 11:34 — forked from jaygooby/git_notes.md
Git, you bloody git

Remove all local tracking branches to a remote & then delete the remote

git remote prune origin && git remote rm origin

Force checkout a branch to avoid the commit or stash your changes warning

Sometimes when you want to checkout a branch, even though your current branch is clean, you'll get a failed partial checkout, because a file in your current branch will be changed by the new branch (Looking at you .xcodeproj files). As long as you know your current branch is clean and up-to-date, -f force the checkout

git checkout -f the_branch

@sergeimuller
sergeimuller / jsconfig.json
Created January 15, 2020 13:07
CRA jsconfig.json for module resolution
{
"compilerOptions": {
"baseUrl": "./src",
"allowSyntheticDefaultImports": false,
"module": "commonJS",
"target": "es6",
"paths": {
"*/*": ["./src/*"]
}
},