Git briefly explained

Set-Up details

git config --global user.email "email.address@company.name"
git config --global user.name "Firstname Surname"

Fetching a repo

git clone git@github.com:company-project/repo-name

Create a branch

git checkout -b branch-name

 

Make your edits to the file you need to change

 

Add the changes back to the repository

git add filepath/filename.ext

Commit you changes

git commit

 

Push your change back to the git server

git push origin branch-name

 

When reviewing your pull request, perform a squash, rebase and merge.

(Ideally a squash should be performed locally before the push).

 

A great article about “How to Write a Git Commit Message”

Once merged switch back to master branch

git checkout master