in Technology by

What is the command to delete a branch in your remote repository?

       A. git delete branchname

       B. git branch -d branchname

       C. git push origin -d branchname

       D. None of the options

1 Answer

0 votes
by

What is the command to delete a branch in your remote repository?

     Ans : git push origin -d branchname

Related questions

0 votes
    What is the command to delete a branch in your remote repository? (1)git branch -d branchname (2)None of the options (3)git push origin -d branchname (4)git delete branchname...
asked Oct 26, 2020 in Technology by JackTerrance
0 votes
    What is the command to delete a branch in your remote repository? (1)git branch -d branchname (2)None of the options (3)git push origin -d branchname (4)git delete branchname...
asked Oct 26, 2020 in Technology by JackTerrance
0 votes
    I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitHub, ... those forks I pulled? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    What is the Git command to create a branch? A. git invoke branch branchname B. git add branch branchname C. git create branch branchname D. git branch branchname...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    When you run git fetch from my local repo, will it update your local code and target branch? A. Yes, the command ... new commits and keep them in a separate branch in local repo...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    Which command can you use to update remote refs with local refs? A. git push B. git fetch C. git pull D. git update...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    Which type of remote URL does not require your user-name and password while for cloning or pushing? A. SSH url B. Https Url...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    we are using git in Team Foundation Service, and we are trying to find a way to delete a remote ... /DefaultCollection/_git/Xxxxxx' Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    What is the command to reset your index as well as the working directory to the state of your last commit? A. git clean B. git reset C. git revert D. git checkout...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    Which of the following creates new commit when you pull new changes from master to the feature branch? A. git rebase master B. git merge master C. git pull origin master...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    Developers A and B are building the same feature on feature/X branch. Developer B made some changes and pushed to the remote. ... git checkout B. git log C. git pull D. git push...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    What is a good practice to follow when you want to backup a local branch? A. Push to remote repo B. Move to another PC C. Create another copy D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    How to delete unpublished Git commits and get rid of them permanently? A. git reset –hard B. git revert C. git reset –soft...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    What is the Git command to skip staging and commit the changes directly? A. git skip stage B. git commit C. git commit -a -m “message” D. git add changes...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    What does the command git checkout branchname do? A. Adds the new branch B. Switches from main branch to the new branch C. Commits the new branch D. Deletes the new branch...
asked Dec 21, 2022 in Technology by JackTerrance
...