Differences between Commit Staged, Commit Staged and Push, Commit Staged and Sync?

1

I installed the GitFlow plugin and got 3 options to commit.

  

Commit Staged.

     

Commit Staged and Push

     

Commit Staged and Sync

What's the difference between them? When should I use them?

    
asked by anonymous 15.08.2017 / 21:42

1 answer

2

Commit Staged

Locally commit changes that are in the stage area.

It is equivalent to

$> git commit -m "mensagem de commit"

Commit Staged and Push

Locally commit the changes that are in the stage area and then send the commits to the remote repository.

It is equivalent to

$> git commit -m "mensagem de commit"
$> git push

Commit Staged and Sync

Locally commit changes that are in the stage area, pull of existing modifications in the remote repository, and send commits to the remote repository. So the name " sync ", at the end of the operation, your local repository must be fully synchronized with the remote.

It is equivalent to

$> git commit -m "mensagem de commit"
$> git pull
$> git push
    
15.08.2017 / 21:51