Articles → GIT → Commits In Multiple Branches In GIT
Commits In Multiple Branches In GIT
Scenario 1
- Switch to master branch
- Create a file 1.txt
- Use following command to commit
git add .
git commit –m “adding 1.txt”
- Switch to dev branch
Scenario 2
- Switch to dev branch
- Create a file 2.txt
- Use following command to commit
git add .
git commit –m “adding 2.txt”
- Switch to master branch