To clone repository on local system ->
git clone <repository-url>
Get inside the local repo branch
Check which branch you are in and all current branches available on local system ->
git branch
If required branch not found, get all current branches from GitHub ->
git fetch
.
To get into a different branch ->
git checkout <that-branch-url>
To check changes in current branch ->
git status
To add changes to stage ->
git add <files-to-be-staged>
To commit those changes ->
git commit -m "message"
.
To push those changes in that branch ->
git push
To merge it in main branch (or any branch) -> create pull request from that branch.
Go to the branch requested and accept that merge request
Top comments (0)