Git · Senior · Question 49 of 76

Why is git push origin main:production interesting?

Explanation

The src:dst refspec form decides which local ref updates which remote ref. git push origin :feature (empty source) deletes feature on the remote.

Further reading

Problem with a question

Git · Senior · question 49

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz