From 89a29a3b52481abcd622ab90d29e885c93712b69 Mon Sep 17 00:00:00 2001 From: stinejs Date: Thu, 1 Oct 2026 13:30:04 +0200 Subject: [PATCH] wrote commands.md with useful commands (Clos es #11) --- Documents/COMMANDS.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documents/COMMANDS.md 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