Reputation: 1187
I am new to git so maybe this is a basic question but I have not found a way to do what I need, and I don't discard a wrong understanding. We have a Bitbucket server where we are sending or code. I am working on a Windows 10 box and the command line git client.
I created a repository for some different programs but some of them include code obtained from github. As it was obtained using git clone <url>
it keeps the references of the original repository (as I can see running git remote -v
on the specific folder).
I have tried to incorporate all the content to our local repository with the following commands but only my parts where incorporated.
git init
git add --all
git commit -m "Initial Commit"
git remote add origin <localURL>
git push -u origin master
I have seen there are plenty of references to folders in gitignore files, I suppose they are preventing it to be uploaded.
Is there a way to delete recursively all the references to git in a path so I can start from a clean folder?
Upvotes: 0
Views: 119
Reputation: 336
just remove the .git
folder in your working directory
Upvotes: 1