Setting my username and email address for the Git config
git config--global.username "garner-holdsworth"
git config--global.email "holdsworth_garner@wheatoncollege.edu"
Generated a ssh public key that will tell the repository that I am allowed to access and edit my website files
ssh-keygen -t rsa -C
I copied the key that was generated and saved it in my Git Lab user settings. To view the key in the terminal, I entered the following command:
cat ~/.ssh/id_rsa.pub
cd firstname-lastname/
First things first, you have to designate your working directory for the linked repository
git status
It's always smart to view the status of the worktree (list of any edits that haven't been committed/pushed back to the repository)
git pull
Pulls file data from the master branch (the files as they exist in the repository), and updates your working branch to match it
git add .
After making changes to any web page file and saving, the changes need to be added/staged into a commit request
git commit -m 'brief message about changes made'
Commits all staged changes with a comment description
git push
Pushes the committed changes to the master Git Lab repository (on certain systems, this step may require a password)