Let’s learn Git branch and Git checkout commands.
1. To manage your branches, you can use git branch commands. There are few command that you need to learn about.
Above command is for list the all branches you have. If you want to create a new branch follow the below code.
If you want to delete a branch, follow this command.
2. We can use git checkout command to switch the branches.
If you want to switch already created branch, you need to follow below command.
If you want to create a new branch and want to switch to that branch,
Related Git commands and Tutorials.
Git config username and password global
git username and password in terminal
Create Repositories – Github for Beginners
Pushing files to repository on git
git save username and password
Clone a Repository on git, push your files to GitHub
Branching and merging git commands
Git Store Username and Password
git tag and git verify-tag commands
Some Git Commands you may need in Version Controlling
advanced Git commands I wish my co-workers would know
git error make sure you configer user.name and user.email
Git – fetch changes from remote repo for current branch
how to make git remember username and password
how to set global github username and password in git
git bisect good or bad commands
Delete commits from a branch in Git
Create Repositories – Github for Beginners
git cherry-pick and git archive commands
git bash set global username and password
File upload using Git Bash – Github for Beginners
switch to a newly created branch
how to change username and password in git
How to do git fetch – Git fetch example
Thank you for reading. If you are interesting on my article, make sure to follow my other articles as well. Make sure to leave a comment.
- Android Studio Articles – https://builditmasters.com/category/android-studio/
- Android Studio Firebase Tutorial – https://builditmasters.com/category/android-studio-firebase-tutorial/
- C Programming – https://builditmasters.com/category/programming/
- Flutter – https://builditmasters.com/category/flutter/
- GitHub Tutorials – https://builditmasters.com/category/github/
- Java Programming – https://builditmasters.com/category/java-programming/
- MERN / MEVN Stacks – https://builditmasters.com/category/mern_mevn_stacks/
- Tech News – https://builditmasters.com/category/tech-news/
- Theory Lessons – https://builditmasters.com/category/theory-lessons/
- Adobe Tutorials – https://builditmasters.com/category/adobe-tutorials/
- Best Website for Programming – https://builditmasters.com/category/best-website-for-programming/
- Different Programming Styles – https://builditmasters.com/category/different-programming-styles/
- Earn Money – https://builditmasters.com/category/earn-money/
- Social Word – https://builditmasters.com/category/social-world/