Intern
In the local feature/auth branch, commits are made, but this branch is not yet on the remote repository origin. How to push the branch and set it to track the remote branch with one command? git push --set-upstream feature/auth git push origin feature/auth git push -u feature/auth origin git push -u origin feature/auth
sobes.tech AI
Answer from AI
The correct command to push the local branch feature/auth to the remote repository origin and simultaneously set up tracking of the remote branch with the same name:
git push -u origin feature/auth
The -u flag (or --set-upstream) establishes a link between the local and remote branches, so that in the future you can simply use git push and git pull without specifying the branch and repository.