Hi,
I’m very much a noob and I’m reading through the manual but it’s not super clear to me, so I’ll appreciate the extra help (currently on this stage: https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository)
I never had git , just got started, to my understanding the first thing is to create the repo,
so I’m currently on my LIVE server, with my LIVE files, and I did - git init, added all files I wanted to gitignore, then did git add * and git commit.
- Did I just create repo? is it just a local repo at the moment or it’s not called a repo yet?
After I did the first commit, I realized that some of the files had sensitive information in them , I still need these files to get tracked, so I edited them , remove the sensitive info to a different untracked file , did git add again and git commit
- how do I remove the first commit ? I don’t want the original one with the sensitive info in the files.
- if I do git remove, will it remove files from my LIVE directory?
- assuming I did everything correct until now, and that I can fix what I asked here.
I understand the next step would be to upload it somewhere (push?) , then pull it in my STAGING server, and from that point all the changes I make, all the commits, and push should be done just from there and the only thing I’m suppose to do on my live server is PULL?
Thanks!