Does anyone else feel like a Jedi when they use "force push" in Git?

  • 0
    Isn't that just git commit --amend?
  • 0
    "git commit --amend" does exactly the same. After you stage your changes of course.

    $ git init

    $ touch a
    $ git add a
    $ git commit -m "Add a"

    $ touch b
    $ git add b
    $ git commit --amend -m "Add a and b"
Add Comment