Stripping a git repo of all gitignore files

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I recently initiated a git repo and forgot to add a .gitignore file. My repo has many subdirectories and many files that should be ignored. Is there an efficient way to add a .gitignore and then push the repo without the files meant to be ignored to a tool like GitLab or GitHub?
git github gitlab
add a comment |Â
up vote
0
down vote
favorite
I recently initiated a git repo and forgot to add a .gitignore file. My repo has many subdirectories and many files that should be ignored. Is there an efficient way to add a .gitignore and then push the repo without the files meant to be ignored to a tool like GitLab or GitHub?
git github gitlab
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I recently initiated a git repo and forgot to add a .gitignore file. My repo has many subdirectories and many files that should be ignored. Is there an efficient way to add a .gitignore and then push the repo without the files meant to be ignored to a tool like GitLab or GitHub?
git github gitlab
I recently initiated a git repo and forgot to add a .gitignore file. My repo has many subdirectories and many files that should be ignored. Is there an efficient way to add a .gitignore and then push the repo without the files meant to be ignored to a tool like GitLab or GitHub?
git github gitlab
git github gitlab
asked 2 mins ago
Brian Fitzpatrick
7541922
7541922
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478507%2fstripping-a-git-repo-of-all-gitignore-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password