Name some git commands and also explain their functions?
Answer / Aditya Kumar Pandey
1) `git init` - Initializes a new Git repository. 2) `git clone` - Clones an existing repository to your local machine. 3) `git add` - Stages changes to be committed. 4) `git commit` - Commits the staged changes with a message. 5) `git status` - Shows the current state of files in the repository. 6) `git pull` - Pulls updates from the remote repository. 7) `git push` - Pushes commits to the remote repository. 8) `git branch` - Lists all local branches. 9) `git merge` - Merges changes from one branch into another.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is git bisect? How can you use it to determine the source of a (regression) bug?
What is the difference between git pull and git fetch?
What is ‘bare repository’ in GIT?
Explain what is commit message?
What is a repository and how will you create it?
Can you explain the gitflow workflow?
What is the function of ‘git checkout’ in git?
Explain the advantages of forking workflow?
What is git fork? How to create tag?
What is the difference between git vs svn
What are git stash and git stash drop?
What is GIT stash drop?