This document is a cheet sheet for Git & GitHub commands that i find it usefull
Commands
var OSName="Unknown OS"; | |
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; | |
else if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; | |
else if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; | |
else if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; | |
console.log('Your OS is: '+OSName); |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
0.1) Use the terminal; | |
1) Make sure there is no changes in both branches (git status); | |
2) Checkout the brach that you want to take the commit from; | |
3) Use git log to show the full number of the commit that you want to cherry pick, and copy it from the teminal; | |
4) Now checkout the branch that you want to recive; | |
5) Then write: git cherry-pick [the number of the commit that you want to take, without brackets] | |
6) You are done! or if conflicts appear resolve them manually; | |
7) Then commit the changes; |
parent::__construct( $args ); }
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; | |
var sass = require('gulp-sass'); | |
// browser-sync task for starting the server. | |
gulp.task('browser-sync', function() { | |
//watch files | |
var files = [ | |
'./*.css', |
# This file will only track custom themes | |
/* | |
!public_html/ | |
public_html/* | |
!public_html/wp-content/ | |
public_html/wp-content/* | |
public_html/wp-content/plugins/* |
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |