4

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

Comments
  • 0
    @illusion466
    Isn't that just git commit --amend?
  • 0
    @illusion466
    "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