github show current branch 1

github show current branch

git branch --show-current

Here is what the above code is Doing:
1. Checkout the master branch
2. Pull the latest changes from the remote repository
3. Checkout the branch you want to merge into master
4. Pull the latest changes from the remote repository
5. Merge the branch into master
6. Push the changes to the remote repository
7. Checkout the master branch again
8. Display the current branch

Similar Posts