Name some git commands and also explain their functions?
Answer Posted / 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 |
Post New Answer View All Answers