Post 2

Paragraph 1

Paragraph 2

Git Basics

This is intended for myself to refer back to in case I forget how to work with Git.


Cloning a project/repository

1. Get the repository address from the GitHub page

2. Make a folder and cd to the folder you want to clone to

3. Clone the repository to the folder:

git clone repository_address


Upload changes to repository

1. Get the latest version of the repository

git pull

2. Add all the changes

git add .

3. Commit these chaneges (with a message)

git commit -m "message about changes"

4. Finally, push the commit

git push

5. Enter username and password