I was in GitBash and did "git add file" and "git commit -m "msg"" and "git push --all origin".
It pushed branches to the work GitHub Repository that I didn't want pushed (some mix up of old things from a different username).
I looked at the branches and a few files were there from my personal computer.
I clicked "branch" on the repository's front page, and deleted those branches that just got put into GitHub.
Did I successfully permanently delete those branches and all files so no coworkers can any longer see it? It seems the branches were never pulled based on below.
Also, when I did the push command, it said:
"delta compression using up to 8 threads" "writing objects : 100% (122/122)" "Total 122 (delta 7)" "remote: create a pull request for 'branchname' on GitHub" "[new branch] branch name --> branch name" "! [rejected] main --> main (fetch first)"
I'm concerned about this because there were only a few files in the branches that got to the repository, but this above makes it appear 122 objects were put into the branches. So I'm concerned I did not delete things I am not seeing that I pushed into the repository. Or is that probably not in the repository because of the "[rejected]" line?
Any help please? I just want to ensure no private life stuff goes into a work repository. Thanks. I'm not too bright on GitHub yet.