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 MySQL SSL and secure connections

There are different articles on how to setup MySQL with SSL but it’s sometimes difficult to end up with a good simple one. Usually, setting up MySQL SSL is not really a smooth process due to such factors like “it’s not your day”, something is broken apparently or the documentation lies... Read this article : Setting up MySQL SSL and secure connections Pre-requisite : Creating SSL Certificates and Keys Using openssl

New Language Expands on Google's Go

InfoWorld (09/23/16) Serdar Yegulalp   Polish developer Marcin Wrochniak has introduced Have, a computer language that transpiles to and expands on Google's Go. Wrochniak developed Have as a hobby project, with the goal of the language becoming a "companion" to Go that addresses some of its common "landmines." One of the most obvious differences between Have and Go is the formatting; Go uses curly braces similar to C/C++, while Have uses block indents like Python. Other differences address idiosyncrasies in Go. For example, the way that variable declaration, structs, and interfaces work have all been modified in Have to be more consistent with each other and to avoid internal inconsistencies that are a common source of bugs. The new language also plans to add generics to Go, which will enable programmers to create constructs in the language that use type parameters and make it possible to extend Have in ways not readily possible in Go. Have also features "