-
create a cmd/bat file with the command. E.g. retag.cmd, save it in C:\git-scripts for example
-
add your git commands to the file. For example, this set of commands deletes the specified tag from your current branch both locally and remotely, then tags it with the same tag and pushes the change remotely
git tag -d %1
git push origin :refs/tags/%1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; switch left ctrl and alt | |
; LCtrl::Alt | |
; LAlt::Ctrl | |
; win+w - open winamp | |
#w:: | |
Run "C:\Program Files (x86)\Winamp\winamp.exe" | |
Return | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard origin/branch_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff --name-only TARGET_BRANCH $(git merge-base TARGET_BRANCH main_dev_branch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- run oracle12c from image | |
docker run --privileged=true -d -p 32770:1521 --name orcl -i oracle-12c:rc_V_9_6_0 | |
# privileged = true | |
-- gives extended privileges to the container | |
# -d | |
-- detach, Run container in background and print container ID | |
# -p outside:inside |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. git checkout -b branch_name tag_name | |
2. git push --set-upstream origin branch_name | |
or | |
git push -u origin branch_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. list all remote tags | |
git ls-remote --tags | |
2. delete local tag | |
git tag -d V_1_0_1 | |
3. push tag deletion to remote | |
git push origin :refs/tags/V_1_0_1 | |
4. tag local branch again |