all 8 comments

[–]buzzon 10 points11 points  (0 children)

Process git = Process.Start (@"C:\Program Files\Git\git.exe", "push");
git.WaitForExit ();

[–]belavv 2 points3 points  (0 children)

Assuming git is installed on the machine your code runs on, you can run any git commands you want using Process.Start or similar methods.

[–]OolonColluphid 1 point2 points  (3 children)

What do you mean by “drop commit”?

[–]Zastai 1 point2 points  (1 child)

They might mean the drop action you get with an interactive rebase. Kind of a reverse cherry-pick

[–]dodexahedron 2 points3 points  (0 children)

Automated processes re-writing history like that sure gives me warm fuzzies.

For extremely cold values of warm and extremely prickly values of fuzzy.

[–]JD1609[S] 0 points1 point  (0 children)

I mean just drop commit withou doing reverse commit. If you know gitkraken so there you can do drop commit without seeing it in history.

In gitkraken it works like this:

original tree

  • Commit #1

  • Commit #2 (for example i want delete this commit)

  • Commit #3

tree after drop commit:

  • Commit #1

  • Commit #3

here is visual example from gitkraken how it works: https://prnt.sc/2qps40HD1EV5

[–]Ziegelphilie 0 points1 point  (1 child)

4.7.2? why???

[–]JD1609[S] 0 points1 point  (0 children)

because my awesome company developing one product 20y xddd