Tags » Git

delete barnch

Git: Delete a branch (local or remote)

To delete a local branch


git branch -d the_local_branch

To remove a remote branch (if you know what you are doing!) 10 more words


git tag

git tag -a 1.0.0 -m "Release of version 1.0.0"

git push --tags


git branch

You can also use ls-remote option to list remote repositories without updating your remote-tracking branches.

$ git ls-remote

Now use following command to list all branches on local and all remote repositories.

$ git branch -a

[GIT command] Branch

Here are some git commands concerning the manipulation of branchs.

# List all the remote branchs

# Checkout a remote branch

$ git checkout -b my_local_branch origin/my_remote_branch
… 11 more words

[GIT commands] Kickoff

To start a git project, it is better to know some useful commands in order to understand how it works. This article allows me to memory some useful git commands. 399 more words


Line Endings in Git with Windows

Devving on Windows is a PITA.

Anyway, ever seen a message like this?

warning: LF will be replaced by CRLF in tests/unit/Del/Console/CommandTest.php.
The file will have its original line endings in your working directory. 43 more words