DEV Community

Elayaraj C
Elayaraj C

Posted on

DAY4 Git Branch, Git Merge

1.To add single file in the git local repository.
$ git add

  • Add a multiple files in git repository.

    $ git add .

Image description

2.The git log command displays all of the commits in a repository's history.
$ git log

Image description

3.The git branch command lets you create, list, rename, and delete branches.
It doesn't let you switch between branches or put a forked history back together again.
$ git branch

Image description

4.The checkout command tells Git which branch or commit you want your changes applied.
$ git checkout

Image description

  1. The git status command displays the state of the working directory and the staging area.

Image description

  1. the git commit command to capture the state of a project at that point in time.
  2. Git Snapshots are always committed to the local repository. $ git commit -m""

Image description

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay