Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Wednesday, June 29, 2016

git notes


Git, delete all deleted files

# git rm $(git ls-files --deleted)

Switch to other branch

# git branches
  Master
  Dev1
* Dev2

# git checkout Master
Branch Master set up to track remote branch Master from origin.
Switched to a new branch 'Master'

# git branches
* Master
  Dev1
  Dev2

Tuesday, October 6, 2015

git server hook after push

in server repo site edit file
.git/hooks/post-receive

add next script


#!/bin/bash
export GIT_WORK_TREE=/var/www/sitepath
git checkout -f



grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...