вторник, 6 сентября 2011 г.

Creating (Deleting) A Remote Branch With Git

Often I forget how creating a remote branch with git. So I wrote about it in this blog.

git push origin origin:refs/heads/new_branch
git checkout --track -b new_branch origin/new_branch
The next command was used for deleting a remote branch.

git push origin :heads/new_branch
If you want to get a list of remote branches.

git branch -r

Комментариев нет:

Отправить комментарий