4c75
4c75

Reputation: 1

Git tags moving from one remote branch to another

I somehow managed to import git tags from one remote repository to a different one. What I did wrong in the said action sequence and how to avoid importing git tags into different remote git repo in the following scenario?

There are two different code solutions (lets say, A and B) in two seperate gitlab remote projects. Both solutions share some similar code. I did code changes in local branch from project A, commited and pushed them using sourcetree, then copied c# files with changes. Then I added additional remote repository path in sourcetree, and checked out master branch from remote project B, copy pasted c# files only, created commit with those files only, did pull command and then pushed to remote project B master. Suddenly git tags from remote project A appears in remote project B Gitlab page.

Upvotes: -1

Views: 112

Answers (1)

4c75
4c75

Reputation: 1

Huh. When i checked out second repo trough SourceTree and run

git tag

i still got tags from my first repo shown. When doing push on sourceTree, a window opened and on bottom of it was checkbox "push all tags", unchecking it stopped tags from going into remote repo into gitlab.

Upvotes: 0

Related Questions