QuestionQ4

701.3 Source Code Management

After you create a new file in a directory that belongs to a Git repository, which commands must be used so Git manages the new file and uploads it to an already configured remote repository?

Choose three
  • A git init
  • B git push
  • C git commit
  • D git add
  • E git remote
Explanation

git add stages the new untracked file, git commit saves the staged change in the local repository history, and git push uploads the commit to the configured remote repository.

Community Discussion

No comments yet. Be the first to start the discussion!