Skip to main content

push and delete remote branches

This is an action that many Git users need to do frequently, but many (including the me!!) have forgotten how to do so or simply don’t know how. Here’s the definitive guide if you’ve forgotten. For this reason I put it on my dev site on cofares the with free articles resources galaxy of sites.

So you have checked out a new branch, committed some awesome changes, but now you need to share this branch though with another developer. You can push the branch up to a remote very simply:

git push origin <pascal>

Where origin is your remote name and <pascal> is the name of the branch you want to push up.

Deleting is also a pretty simple task:

git push origin :<pascal>

That will delete the newfeature branch on the origin remote, but you’ll still need to delete the branch locally with  

git branch -d <pascal>


Comments

  1. khi tre so sinh bi suy dinh duong là điều mà các bậc cha mẹ rất lo lắng,bài viết sao đây sẽ chia sẽ cach cham soc tre so sinh bi suy dinh duong.bọn trẻ con bây giờ rất hiếu động,có nhửng đứa mãi chơi mà quên ăn,click vào bài viết này chia sẻ meo tri bieng an o tre rất hay nè bà con.
    Cần phải trang bị cho mình một ít kiến thức khi mang thai.Bài viết sau đây sẻ giúp bạn hiểu hơn khi mẹ bầu bị ho thì nên sử dụng loại thuốc nào: bai thuoc tri ho cho me bau.Bên cạnh đó củng cần phải quan tâm thực phẩm bà bầu nên ăn trong 3 tháng đầu ,để giữ cho mẹ bầu có 1 chế độ dinh dưỡng hợp lý nhất.

    ReplyDelete

Post a Comment

Pascal Fares and Open Source Lebanese Movement >

Popular posts from this blog

Setting Up Network RAID1 With DRBD On Ubuntu 12.04

A Network software raid1Setting Up Network RAID1 With DRBD On Ubuntu 12.04 This tutorial shows how to set up network RAID1 with the help of DRBD on two Ubuntu 12.04 systems. DRBD stands for Distributed Replicated Block Device and allows you to mirror block devices over a network (like raid1 with 2 disks). This is useful for high-availability setups because if one node fails, all data is still available from the other node.
1 Preliminary Note We use two servers (both running the same version of linux in our case Ubuntu 12.04): server1.cofares.net (IP address 192.168.10.100)server2.cofares.net (IP address: 192.168.10.101) Both nodes have an unpartitioned second drive (/dev/sdb) with identical size (X GB) that I want to mirror over the network (network RAID1) with the help of DRBD. It is important that both nodes can resolve each other, either through DNS or through /etc/hosts, /etc/hosts would be a better choice (our 2 servers are on the same switch and local. You can modify /etc/hosts on…

HOWTO remove all dangling commits from your git repository

A good explanation of the dangling (fr: ballants) commits source tells you how they get created.

git fsck --fullChecking object directories: 100% (300/300), done. Checking objects: 100% (10658/10658), done. dangling commit x.... dangling blob y.... dangling commit z.... dangling blob w.... dangling blob a.... dangling commit b....
How to quickly remove those?
git reflog expire --expire=now --all git gc --prune=now