0

I have a directory, called stock that I pushed in git which included a .git. When I view the the files in gitlab, there is another pointer stock @625e9a3. Is is possible to remove stock @625e9a3? How?

tleo
  • 351
  • 3
  • 16
  • Possible duplicate of [How can I undo a \`git commit\` locally and on a remote after \`git push\`](https://stackoverflow.com/questions/6459080/how-can-i-undo-a-git-commit-locally-and-on-a-remote-after-git-push) – Nikhil Gupta Jun 24 '19 at 20:08
  • 3
    Looks like a submodule. Does your project on gitlab contains a `.gitmodules` file? – piarston Jun 24 '19 at 20:12

1 Answers1

0

GitLab is displaying git submodules with an @ <sha> next to the name.

If you want to remove the submodule from your repository, edit the file .gitmodules and remove the block

[submodule "stock"]
    path = stock
    url = ...
piarston
  • 1,685
  • 1
  • 13
  • 25
  • There is no .gitmodules in the repo. Where can I find it? – tleo Jun 25 '19 at 21:31
  • Okay. Could you please share a screenshot of this `stock @625e9a3` that you are viewing on GitLab? I would help us visualize what you want to achieve. – piarston Jun 26 '19 at 06:26