Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Documents/COMMANDS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Commands

This document include a selection off git commands, that are used when working together. Simply created to make it easier to make sure it is beeing done correctly.

## Creating a new branch

```bash
git checkout main
git pull
git checkout -b feature/issue-#number-description
```

## Saving and pushing changes

```bash
git add .
git commit -m "short description of what was done (Closes #number)"
git push -u origin feature/issue-#number-description
```

## Updating your local main branch

```bash
git checkout main
git pull
```

## Delete old branch

```bash
git checkout main
git pull
git branch -d feature/issue-#number-description
```

## View local branches

```bash
git branch
```