Skip to content

The wisdom of tools for conquering the glorious web!

Notifications You must be signed in to change notification settings

brainmaniac/legacyCookBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

legacyCookBook

The wisdom of tools for conquering the glorious web! alt text

GIT COMMANDS

git status Check status (eg. do you have any uncommited changes)

git log See history of commits

git branch See which branch you are currently on

git checkout XXXXX Change to other branch

git checkout -- . Remove unstaged changes

git branch feature/new-feauture Create new branch based on current branch

git merge XXXXX" Merge branch XXXXX with current branch

git commit -am "NAME COMMIT" Prepare commit

git push --all origin Send all to common code base

git branch -m NEWNAME Rename current branch

git push origin --delete <branch_name> Delet remote branch

git branch -d <branch_name> Delete local branch

failsafe windows lineending to unix Delete file, restore file, commit

NPM/YARN

commands

PHP/LARAVEL

composer dump-autoload Whenever something is not working from commandline using laravel, try this first

php artisan migrate:refresh --seed Remake the whole database with current migrations and seed

PYTHON

commands

VAGRANT/VIRTUAL BOX/HOSTS ETC

commands

UNIX

echo mypassword | sudo -S command Pipe command to prompt

copy file from server to local scp your_username@remotehost.edu:foobar.txt /some/local/directory

WINDOWS

commands

REGEX

'click'.*

$&console.log('eventid',123456789);

About

The wisdom of tools for conquering the glorious web!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published