Git

Commands Install: winget install git Set up: git config --global user.name "User Name" git config --global user.email "email@email.com" Create a New Project: mkdir project cd project git init (initialise empty git repo in my folder (based on path) aka .git folder) ls -la (check my folder) Check “world status”: git status Help for each command git help <command> Add files git add . = add all on current branch git add -p <param=file> = add part of file to staging area, ask for each change (if no param => all files) so we have more control and cleaner commits. _After any git add, we need a git commit, either a file or a pattern (e.g. _.txt) * Delete a file git rm <filename> = deletes a file, updates git and then commit! git rm --cached <filename>" = delete a previously tracked file Move a file git mv <old path> <new path> should be followed by: git rm <old path> git add <new path> ...

11 min

NeoVim

Vim is a text editor which includes most commands from the Unix program “Vi” and many new ones. An overview of this manual can be found in the file “help.txt”, help.txt. It can be accessed from within Vim with the or key and with the :help command (just type “:help”, without the bars or quotes). The ‘helpfile’ option can be set to the name of the help file, in case it is not located in the default place. You can jump to subjects like with tags: Use CTRL-] to jump to a subject under the cursor, use CTRL-T to jump back. ...

3 min