Skip to content

Instantly share code, notes, and snippets.

@petarjs
petarjs / CLI cool stuff.md
Last active October 21, 2015 00:28
and commands

General Git

git push origin HEAD - push the current branch to branch with the same name on the server
git push -u origin HEAD - the same, just set upstrem tracking
git remote set-url origin git@github.com:username/repo.git - change the remote
git branch --no-merged - Show branches not merged into master

SSH Keys - Don't ask for password (only works from git bash)

eval $(ssh-agent) # starts the ssh agent on win7, win8
ssh-add /c/Users/Vlada/.ssh/id_rsa # add the key for which you want to disable entering password on every push/pull

AllAutocomplete
AngularJS
AutoFileName
BracketHighlighter
EditorConfig
Emmet
Emmet: Css Snippets
Handlebars
HTMLBeautify
JSFormat
[{
"keys": ["ctrl+shift+s"],
"command": "save_all"
}, {
"keys": ["tab"],
"command": "move",
"args": {
"by": "characters",
"forward": true
},
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",