diff --git a/Documents/COMMANDS.md b/Documents/COMMANDS.md new file mode 100644 index 0000000..ec3d18d --- /dev/null +++ b/Documents/COMMANDS.md @@ -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 +``` \ No newline at end of file