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

Asked

Viewed 1,197 times

1

I installed the Gitflow plugin and came across 3 options to commit.

Commit Staged.

Commit Staged and Push

Commit Staged and Sync

inserir a descrição da imagem aqui

What’s the difference between them? When should I wear them?

1 answer

2


Commit Staged

Commits locally changes that are in the area of Stage.

Is equivalent to

$> git commit -m "mensagem de commit"

Commit Staged and Push

Commits locally changes that are in the area of Stage and then send the commits to the remote repository.

Is equivalent to

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

Commit Staged and Sync

Commits locally the changes that are Stage, makes a pull changes in the remote repository and sends the commits to the remote repository. Hence the name "Sync", at the end of the operation, your local repository must be fully synchronized with the remote.

Is equivalent to

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.