Git Range Notation “..”

Here’s how NOT to read the following:ย 

git log master..origin/master

“Show me all commits from branch ‘master’ to branch ‘origin/master’ that are reachable”

Here’s the CORRECT WAY to read it:

“Show me all commits from branch ‘master’ to branch ‘origin/master’ that are UNREACHABLE”

That command will tell you what – if any – commits you WOULD merge in if you ran:

git checkout master
git merge origin/master

If you’re a Linux SYSADMIN and want to get started with Git,

Here’s my in progress Git playlist:

Edit Multiple Files in VIM – Part 2

Notes from video:

# Notes for my YouTube video:
# https://youtu.be/o6cZ8fFBj-M


###################
#
# Command-Line Mode
#
###################

##
:split 
:split [FILENAME]
:vertical split 
:vertical split [FILENAME]

##
# Close window with cursor
:close

##
# override all warnings with "!"
# and hide buffer
:close! 

##
# close all windows AND 
# exit the Vim program
:quitall

##
# override warning with "!"
# and discad ALL changes THEN
# exit Vim program
:quitall! 



##############
#
# Normal Mode
#
##############

##
# increase window width
^w >
[NUMBER] ^w >

##
# decrease window width
^w <
[NUMBER] ^w <

##
# increase window height
^w +
[NUMBER] ^w +

##
# decrease window height
^w -
[NUMBER] ^w -

##
# set all windows equal
^w =

##
# rotate windows
^w r

##
# move cursor in a 
# particular direction 
^w [ARROW KEY]

You can also get the most current version of the above via git:

git clone https://gist.github.com/3d380d4bbd54c0c36d144ededb7c3591.git vimBuffers2
cd vimBuffers2

Edit Multiple Files in VIM

Notes from video:

#
# Notes for my YouTube video => https://youtu.be/XTgNXp8PD3c
#

# Display Buffer List
:buffers
:ls

# open and edit another file w/in VIM
# AND append [FILENAME] to Buffer List
:edit [FILENAME] 

# Add [FILENAME] to the Buffer List from w/ in 
# a modified buffer
:badd [FILENAME]

# Navigating the buffer list
:bprevious
:bnext
:buffer [NUM] # jump directly to Buffer number [NUM]
:buffer! [NUM] # override warning and hide buffer

:pwd  # P(rint) W(orking) D(irectory)


# While in Normal Mode (aka Command Mode)
# Press "2", then "Control-g"
2 + Ctrl-g  
# Hit "Escape" key to enter Normal Mode

# Display Argument List
:args

# Navigate Argument List
:previous
:next

# Miscellaneous
:quit
:quit!
:write

You can also get the most current version of the above via git:

git clone https://gist.github.com/ec9f971671b0a493b9bbc4a92e7fdeb1.git vimBuffers
cd vimBuffers

How To Learn (Linux) Better ๐Ÿง 

The best way to learn new information is to make it useful.

UTILITY is key! ๐Ÿ”‘

For example, VIM has a lot of commands for splitting windows, creating tabs, managing buffers, etc.

I struggle to โ€œmake this, make senseโ€.

===

Finally โ˜๏ธ, once I installed a VIM plugin for git – fugitive – all the shortcuts, commands, and concepts in VIM really came alive and had actual meaning.

Trying to learn a new feature in VIM, TMUX, etcโ€ฆ

Make it useful ๐Ÿ˜ƒ

TMUX Architecture

I’m developing more YouTube videos and one of them is: Introduction to TMUX

Here’s what I have so far:

A couple of things to note:

  1. Anything under the SSHD daemon (red dashed-square) is vulnerable to:
    • network interruptions and/or
    • session timeouts.
    • When this happens, ALL OF YOUR SHELLS and work are immediately terminated! โ˜ ๏ธ
  2. Anything under the TMUX Server (green dashed-square) is safe and will continue to run ๐Ÿ˜‰
    • And โ˜๏ธyou can reconnect to those shells and pick up like nothing ever happened.