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?
Git branches
My branch
Report a typo
Enter a short text
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.