Class 03
Contents
- Home Page
- Class 01
- Class 02
- Class 03
- Class 04
- Class 04 Website
- Class 05 Website
- Class 05
- Class 06 Website
- Class 06
- Class 07 Website
- Class 07
- Class 08
- Class 08 Website
GIT and repositories
GIT is a tool used for creating collaborative projects as well as providing remote storage to back up your work.
There are many GIT based services, one of the most popular being Github. Bitbucket is largely popular amoung businesses due to their integration with other software. Gitlab is another competitor.
GIT commands
git init
Initializes a git repository locallygit add
Adds files/folders to be trackedgit commit
*Commits tracked changes to the repository, you can add-m 'Your message here'
to add a message to a commit. Messages should show why you are commiting changes.git push
pushes changes from your local directory to the remote directory.git pull
pulls and merges changes from remote to local.git clone
clones a remote directory to your local machine.