new

Try Stack Overflow for Business

Our new business plan for private Q&A; offers single sign-on and advanced features. Get started by May 31 for 2 months free.

Learn more
4 deleted 271 characters in body
source | link

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it (locally):

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

As Geuis has said in the comments, this will only delete the remote branch tracking reference. So, you need to also run the following command to finish the branch deleting procedure: And for deleting the remote branch:

git push origin --delete contact-form

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

As Geuis has said in the comments, this will only delete the remote branch tracking reference. So, you need to also run the following command to finish the branch deleting procedure:

git push origin --delete contact-form

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it (locally):

$ git branch -d contact-form

And for deleting the remote branch:

git push origin --delete contact-form
3 added 241 characters in body
source | link

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

As Geuis has said in the comments, this will only delete the remote branch tracking reference. So, you need to also run the following command to finish the branch deleting procedure:

git push origin --delete contact-form

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

As Geuis has said in the comments, this will only delete the remote branch tracking reference. So, you need to also run the following command to finish the branch deleting procedure:

git push origin --delete contact-form
2 added 7 characters in body
source | link

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

Deleting Branches

Let's assume our work on "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form

Deleting Branches

Let's assume our work on branch "contact-form" is done and we've already integrated it into "master". Since we don't need it anymore, we can delete it:

$ git branch -d contact-form

Tidy as we are, we also delete the remote branch by simply adding the "-r" flag:

$ git branch -dr origin/contact-form
1
source | link