Skip to content

Instantly share code, notes, and snippets.

@zashishz
Last active June 24, 2017 12:08
Show Gist options
  • Save zashishz/66a2e0586ee8799258f6046c846a50bb to your computer and use it in GitHub Desktop.
Save zashishz/66a2e0586ee8799258f6046c846a50bb to your computer and use it in GitHub Desktop.
Git Handy Commands
* git remote -v //shows all remote sources
* git remote set-url origin <<link>>
* git remote add origin https://github.com/try-git/try_git.git
* git push -u origin master
* git pull origin master
* git diff HEAD
//compare with staged files
* git diff --staged
//unstage
* git reset octofamily/octodog.txt
//restore to last commit
* git checkout -- octocat.txt
//create new branch
* git branch clean_up
//list branches
* git branch
//git checkout clean_up -->switch to branch OR
* git checkout -b new_branch -->create + switch
//remove all files
* git rm '*.txt'
* git merge clean_up
//delete branch after merge // use -f flag if deleting without merge
* git branch -d clean_up
* git push
=================
The quirky parts of javascript: https://bonsaiden.github.io/JavaScript-Garden/
Regex testing website: https://regex101.com/
The CSS "Holy book": https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
CSS Tutorial (beginner): http://learnlayout.com/no-layout.html
Webdev snippets: https://css-tricks.com/
CSS Prefix check: http://shouldiprefix.com/
Why CSS Flexbox: https://philipwalton.github.io/solved-by-flexbox/demos/grids/
Flexbox Tutorial: https://paulund.co.uk/css-flexbox
Flexbox Tutorial Game: http://flexboxfroggy.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment