First Project

Git VS Github

Git is a revision control system.

Github is a dropbox for your code where can publish on the platform and collaborate with other developers.

Main Git + Github commands

Git commands:

  • pwd - tells you where you are

  • ls - lists your files and folders

  • cd - change directory

  • mkdir - make directory

  • ~ - home

  • rm -rf - deletes directory

  • touch - creates something

Github commands:

  • git status - runs the programme

  • git add . - adds everything

  • git commit -m 'clear message' - saving a version

  • git push -u - pushes work online

  • git remote --v - verbose

.gitignore

A gitignore file specifies intentionally untracked files that Git should ignore.