Posts

Showing posts with the label git

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...

This Git Tutorial

Image
Git is easy to get started with. I agree especially with a simple tutorial.

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.

Problem: Github integration on VS Code

This got a bit frustrating. I couldn't get Github to work VS Code. I remember there was a message on it for me that says something about configuring Github but I toggled ignore and now I am having trouble getting it to work. Of course there is no extension for this because it is supposed to be already built in to VS Code. I try to search for help in Youtube, Github forums, and Stack Overflow but the advises I come across either doesn't work. Solution attempt #1 - reinstall VS Code. I want to upgrade to 64 bit anyway. Update - this didn't work. Solution attempt #2 - reading closer the sources that I've come across, it becomes apparent what I have done wrong. I installed GitHub Desktop instead of Git. LOL Update - this worked! Now I can go do those Github VS Code integration tutorials :D Bonus problem: Cannot push from VS Code to Github Solution: Uncheck in the setting -> email "Block command line pushes that expose my email"

This Simple Github Tutorial

https://guides.github.com/activities/hello-world/ About myself as was told to write about. hmanuel13 committed 11 minutes ago Why the tutorial told me to write something about myself and these are definitive written about myself texts. Just agree. Next distraction: A video tutorial about git in VS Code

Github

Today I start learning about Github. I feel like this is something I have to learn early on and post even the most rudimentary codes I have. It will help me assess my progress. I wonder why this is hidden from begginers at freeCodeCamp. I will start with a "Hello World Sandbox". I wonder what it will turn into. Maybe into "Hello Otherworld", "Hello Afterworld", who knows? Yayan's Github