This is the first time I'm using tag on Git, so I've a question.
First, I cloned my repository (from the master
branch) and modified the code.
Then, I want on Gitlab and created a new tag from the GUI: Repository -> Tags -> New Tag.
At, this point I've a new tag, TAG_A
.
Now, I'd like to push my modified code into the TAG_A
. How can I do it?
In order to push to your GitLab repository, it is best to create a branch instead of a tag (see GitLab branch ):
That way, you can create the same branch locally, add commits and push:
cd /path/to/local/repository
git fetch
git switch -c myBranch origin/master
# work, add, commit...
git push -u origin myBranch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.