Posts

Showing posts with the label git bash

Git Pull Origin Master & other Git Overrides

git pull origin master I learned something today about editing local repo without first updating it. Good thing there was only a very minor change in the master branch. So I learned that I should update the local repo first before making a ton of changes to it. I do not yet know how just combine the two without creating creating problems in the code. I assume depends on the codes themselves and that it has to do with merging. Also: git push origin --force Just totally override the master branch with the local repo git reset --hard origin/master Just totally override the local repo with the master branch Emmet Review ul.main-nav>li*4>a result: <ul class="main-nav">     <li><a href=""></a></li>     <li><a href=""></a></li>     <li><a href=""></a></li>     <li><a href=""></a></li> </ul>

Git Bash Review

This is a good enough review of Git Bash terminal commands pwd - (print working directory) present directory ls - list files and folders ls -l  - more details cd - change directory *tab - use this for autocompletion cd ../../.. - 3 levels dows cd .. - 1 level down cd ~ - home directory cd - home directory (no parameters) cd " " - directly into any directory echo - display something echo '$PATH' - variable interpolation, show current path cat - show content of a file less - show content, navigable using arrows, press Q to exit touch - create a file mv - rename a file, move a file into another name rm - remove a file *using touch filename simply modifies the current last access time stamp mkdir - make directory mkdir /p - make multilevel directory rm -r -f - force remove a directory recursively if it is not empty exit - exit terminal >> - output to a file > - output to a file, replace the con...

Git Bash Commands

Apparently I have to learn Git Bash commands now so I can navigate the file system using a different command line system than I'm used to. I'm like, not now. Fortunately I actually like learning this stuff. It seems esoteric as oppose to your regular GUI driven navigation. Well these commands work and these are all I need right now. cd, dir. :D And these: $git remote add origin $git push -u origin master I don't care about the details right now as long as it is working properly.