Coder Social home page Coder Social logo

git-lecture's Introduction

Git Lecture

Installing Git

To check if git is installed run git --version. If it is not installed do one of the following based on OS.

install node

brew install node

Ensure Every one has a github account

Windows / Mac Download

Windows will need Git Bash as well to get a unix terminal. have them download the client from this site.

https://git-scm.com/downloads

Terminal Commands

Students will need to know and get comfortable with the following commands and understand this is just another way of navigating their file structure.

  • tab: your best friend auto complete.

  • pwd: print working directory, see the full path of the directory (aka: folder).

  • ls: list, show all the items in the current directory.

  • cd: change directory, allows you to move between folders.

  • .: here, single dot means from the current directory.

  • cd ..: up one level, goes up to the parent directory.

  • cd ../..: goes up two levels, can be combined endlessly to move between folders.

  • ~: root directory, moves the terminal to the root directory for the user.

  • clear: clears out the terminal and all the text.

  • mkdir ____: make directory: makes a folder with the provided name at the current directory.

  • touch: make a file at the current directory.

  • cp source destination: copy to location, set the location of the file you want to copy, and where to copy it to.

  • mv: move, allows you to move files around

  • rm: remove file, this will only specifically remove a file.

  • rmdir ____: deletes an empty directory.

  • rm -R ____: deletes all the content of a folder, forever, no return.

  • rm -iR ____: deletes all the content of a folder, but asks about every file before it does.

  • ↕ arrows: Re types out previous commands. God sent and huge time saver.

  • code .: Opens vscode at this location.

set user info for git on terminal

Login Info

  • git config --global user.name "____"

Mac Specific

shell command

  • Open Terminal found in Finder > Applications > Utilities
  • In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES
  • Press return
  • Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.

Literally anything

git-lecture's People

Contributors

garryck-davies avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.