Git Commands
Submodule
Sync
git submodule sync
Update
git submodule update --remote
Git Tag
-
Checkout the tag (a Detached HEAD)
git checkout tag/v1.1
-
Create and Checkout a branch off that tag (i.e. Branching off the tag)
git checkout -b my-tagged-branch
-
Push to the remote branch.
If needed merge branch into other branches that need the change (in case of a bug fix for example)git push -u origin my-tagged-branch
-
While still on my-tagged-branch, Delete the tag
git tag -d v1.1
-
Create the tag again: This will "move" the tag to point to your latest commit on that branch
git tag v1.1
-
Delete the tag on remote
git push origin :v1.1
-
Create the tag on remote
git push origin v1.1
Git URL
- Change remote orgin
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git