Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

3D

INTERN

ADOBE

ARDUINO

BITBUCKET

DOCKER

C4D

GIT

HTML

IPHONE

JAVASCRIPT

JTL-SHOP

LARAVEL

MAGENTO2

MYSQL

PHP

PLESK

PROCESSING

PYTHON

SUITECRM

SEO

TRYTON

THUNDERBIRD / ICEDOVE / FossaMail

TYPO3

TYPO3: BACKEND

TYPO3: TYPOSCRIPT

UNIX

VLC

VVVV

WINDOWS

WINDOWS 10

WORDPRESS

XAMPP

XT:C 4 (Veyton)

git-snippets

git snippets

Showing which files have changed between git branches

git diff --name-status master..branchName

checkout specific files from another branch

git checkout BRANCH -- FILENAME(PATTERN)

delete a branch

remove local branch

git branch -d the_local_branch

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

git push origin :the_remote_branch

Source

git tags

# list tags
$ git tag
 
# list specific tags
$ git tag -l 'v1.8.5*'
 
# create tags (there are lightweight and annotated
# in general do use annotaded tags because a lot of metadata gets stored aswell)
$ git tag -a v1.4 -m 'my version 1.4'
 
# show tag data
$ git show v1.4
 
# tag a commit later
$ git tag -a v1.2 $HASHOFCOMMIT

.gitignore: Ignore everything except (example)

# ignore everything
*
 
# but not
!*/
 
!/.gitignore
!/package.json
!/mysql-backup.bat
!/mysql-restore.bat
!clientdata/*
!psd/*
!backups/*
!backups/sql/*
 
!public_html/.htaccess
!public_html/wp-content/themes/mytheme/*
git-snippets.txt · Zuletzt geändert: 2015/03/06 21:04 von admin