Skip to content

Git

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Commands

Here is a small list of the most commonly used git commands, for the complete list visit the documentation:

  • git init ➡ Initializes a new Git repository
  • git add <file> ➡ Adds files to the staging area
  • git commit -m "message" ➡ Used to commit files (locally) on the repository
  • git clone ➡ Used to download existing code from a remote repository
  • git push <remote> <brand-name> ➡ Used to save all commits to the remote repository
  • git pull <remote> ➡ Used to pull down all the updates drom the remote repository
  • git rm <file-name> ➡ Used to remove a file from the working directory
  • git reset ➡ Undo the changes to the local files, and restore to the last commit

Git at Beaulieu

At beaulieu we use semantic and descriptive commit messages. This helps track changes and better respond if a regression error pops up.

[feat]: add hat wobble (https://projects.zenkit.com/i/aaaaaa/aaaaaaa/hat-wobble)
^--^  ^------------^ ^--------- - - -
|     |              +-> Zenkit URL if applicable
|     +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.

Commit types

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, etc; no production code change)
  • refactor: (refactoring production code, eg. renaming a variable)
  • test: (adding missing tests, refactoring tests; no production code change)
  • chore: (updating grunt tasks etc; no production code change)

For more information you can visit the conventional commits website

Released under the MIT License.