My branch

Report a typo

John has recently started using git. John created a branch called my_branch and tried to add text.txt file to this newly created branch. But, after the git add text.txt command, the file was instead added to the main branch. What command did John forget to use?

Enter a short text
___

Create a free account to access the full topic