Articles → GIT → Commits In Multiple Branches In GIT

Commits In Multiple Branches In GIT








Scenario 1


  1. Switch to master branch
  2. Create a file 1.txt
  3. Use following command to commit
  4. git add .
    git commit –m “adding 1.txt”


  5. Switch to dev branch



Scenario 2


  1. Switch to dev branch
  2. Create a file 2.txt
  3. Use following command to commit
  4. git add .
    git commit –m “adding 2.txt”


  5. Switch to master branch





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, August 8, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250