Hi! Force pushing is dangerous, make sure to have a copy of the repo backed up! Sometimes it's necessary though. If you need to do it, make sure that each developer re-clones the repository! I had to do it yesterday for https://github.com/opennars/opennars-for-applications as one author pushed with a wrong email address, and this demands a rebase&amend, which changes all commit hashes beginning from the edited commit.
Best regards, Patrick Am Fr., 11. Sept. 2020 um 17:25 Uhr schrieb Pursuer <[email protected]>: > I found a way to remove these empty commit, by use "git rebase -i". But I > can't push these change without -f flag, and I have been told that do NOT > use "git push -f". So I can only give up to revert it. > > > ------------------ Original ------------------ > *From:* "tinycc-devel" <[email protected]>; > *Date:* Fri, Sep 11, 2020 11:35 PM > *To:* "tinycc-devel"<[email protected]>; > *Cc:* "Larry Doolittle"<[email protected]>; > *Subject:* Re: [Tinycc-devel] It seem I pull code in wrong way. How can I > revert it? > > Pursuer - > > On Fri, Sep 11, 2020 at 11:27:05PM +0800, Pursuer wrote: > > I'm sorry that I pull code in wrong way. > > And now there are many commit like > > Merge branch 'mob' of git://repo.or.cz/tinycc into mob > > How can I remove them. > > Obligatory xkcd: > https://xkcd.com/1597/ > > There are fancier (and arguably more efficient) ways to recover than > "delete the project, and download a fresh copy". > But they're harder to explain and understand. > > - Larry > > _______________________________________________ > Tinycc-devel mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/tinycc-devel > _______________________________________________ > Tinycc-devel mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/tinycc-devel >
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
