My project has a master branch and a searchfeature branch. I moved the searchfeature branch to the remote repository, everything is fine so far
When I worked on this thread this morning, I did "git push", I got the following:
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
So, I went ahead by doing git config push.default tracking and voila, git push works, this is not a problem, no warnings.
What I do not understand, what is the difference between "current" and "tracking", if you do not do "tracking at all costs", then what is the meaning of the "current" - where would it go? What scenarios would you use instead of tracking?
Also, what scenarios will ever use "nothing"?
user53791
source share