J'ai une branche master et une branche searchfeature dans mon projet. Je l'ai poussé la branche searchfeature au dépôt distant, tout va bien jusqu'à présentGit Push Questions - Pedantique
Quand je travaillais sur cette branche, ce matin, je l'ai « git push » Je suis arrivé ce qui suit:
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
Je suis donc allé à l'avance a fait un git config push.default suivi et voila, git push fonctionne ce pas de problème, pas d'avertissement. Ce que je ne comprends pas est ce que la différence entre "courant" et "suivi" est, si vous ne faites pas "à quoi que ce soit suivi" alors quel est le point de "courant" - où irait-il? , quels scénarios utiliseriez-vous plutôt que de suivre?
En outre, quels scénarios utiliseriez-vous jamais "rien"?