Git (/ɡɪt/ is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed by Linus Torvalds for Linux kernel development in 2005, and has since become the most widely adopted version control system for software development.
As with most other distributed revision control systems, and unlike most client–server systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.
By far and away the best thing about Git compared to previous repository control systems is the ability to very easily create branches (such as small branches dedicated to fixing a specific problem or developing a feature) and then merge them back onto a main branch.
There are now more Git clients than you can poke a stick at, but my current favourite is Atlasssian SourceTree used in parallel with NetBeans IDE as my PHP coding environment for Drupal and the Git command line client, which work together completely seamlessly.
git branch -m <oldname> <newname>
If you want to rename the current branch, you can simply do:
git branch -m <newname>
git branch -D [branchname]
Remotely, old style (note the ':' colon):
git push origin :[branchname]
Since Git 1.7 clearer syntax option:
git push origin --delete [branchname]
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.