DEV Community

Kaviya R
Kaviya R

Posted on • Edited on

2

COMMANDS IN GIT-2

Today also, I come with some new commands that I have learned today.That are

       - gitdiff
       - gitcheckout
       - gitmerge
       - gitbranch
Enter fullscreen mode Exit fullscreen mode

Gitdiff:

  git diff is used to find the difference between the file in the working repo and the staging area.
Enter fullscreen mode Exit fullscreen mode

gitcheckout:

   git checkout in git is used to switch between different branches.
       git checkout -b <new-branch-name>
Enter fullscreen mode Exit fullscreen mode

This command is used to create the new branch and switch to the newly created branch from old one.

gitmerge:

    gitmerge is used merge the changes from one branch to another.
           git merge <branch-name>
Enter fullscreen mode Exit fullscreen mode

This commonly usually work from the branch you currently working and merge the branch that you have chosen(need to discuss)

gitbranch:

      gitbranch is used to manage the branches in git

             git branch
Enter fullscreen mode Exit fullscreen mode

This will show the all the local branches.The current branch will be marked with "*".

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay