Skip to content

systemnotes/gitnotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitnotes

Notes about how to use git

There are cheat sheets available that contain advanced features, but this intro is intented to provide a quick start to learn git. Start with the core commands, and then learn new features as they are needed.


Quick Start for git

Concept: All git work is local, until published (git push)

Commands:

Git Work Flow

[Checkout] git init / git clone

[Change]

[Stage] git add .

[Commit] git commit

[Publish to origin] git push


Quick Start git Commands

Git Core Commands

  • git init
  • git add .
  • git commit -m "initial commit"

Supporting Commands

  • git status
  • git log

Remote Repository Commands

  • git clone [url]
  • git pull
  • git push

Install Git

Git Reference

Git Cheat Sheets

Git Repositories


Quick Start for vi/vim

Remember when learing vi, there are basic concepts, and basic commands. The concepts, are that vi is a text editor, and that there are two modes. The main commands to know are to how modify a file, and then either save it, or discard changes.

Concepts

[Vi Modes] vi is a text editor, with two basic modes

  • Command Mode
  • Insert Mode

Commands

To edit a text file:

  • [Open a file] ** vi filename

  • [Enter insert mode] ** i

  • [Make Changes]

  • [Quit, with saving] ** [Esc]:wq!

  • [Quit, without saving] ** [Esc]:q!

Later, we learn about moving, deleting, copying, searching, save as, opening multiple files, etc.

About

Notes about how to use git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published