Vote count:
0
I have a repo test-repo, it contains two branches master and dev. Any files / directories that are in the master branch's .gitignore files appear locally in both branches when I git checkout to them, I assume this is normal behaviour as those files aren't being tracked by Git so they're just in the test-repo directory no matter what. I don't want this to happen. My ideal setup is like below:
When I git checkout master the local file / directory structure should be like so:
test-repo/
.gitignore (this file just contains `should-be-ignored.md`)
should-be-ignored.md
should-only-show-in-master.md
When I git checkout dev the local file / directory structure should be like so:
test-repo/
should-only-show-in-dev.md
If anyone has any idea on how to achieve this setup I'd really appreciate it.
asked 45 secs ago
Aucun commentaire:
Enregistrer un commentaire