#ITI TASK ANSWERS
-
To remove a branch locally
- If files are merged: (git branch -d dev)
- To force delete unmerged: files (git branch -D dev)
-
To checkout another branch without commit 2.1. stash: (git stash) 2.2. then: (git checkout main)
-
To list tags
- Use the command: (git tags)
-
To delete tag
- Locally: (git tag -d V1.7)
- Remotely: (git push origin --delete V1.7)