Git · Senior · Question 49 of 76
Why is git push origin main:production interesting?
- ✓Correct answer: It pushes local
mainto a differently named branch - 2It renames the local branch before pushing
- 3It merges
mainandproductionon the server
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.