-
Notifications
You must be signed in to change notification settings - Fork 0
Git
Greg Flynn edited this page Nov 8, 2019
·
15 revisions
git init --bare --shared=all $repodirchgrp -R foo $repodir
chmod -R g+rw $repodir
chmod g+s `find $repodir -type d`gitk --all
git stash list
git stash show <stash_hash>
git stash show -p <stash_hash>
git stash apply <stash_hash>
git stash save “foo”
git stash apply stash^{/foo}
git stash pop
git stash drop
git checkout master
git merge dev
git push
git checkout dev
git fetch
git checkout A
git checkout --patch B foo.txt
(Note if foo.txt does not exist do not use --patch)
or
git merge-file file1 original file2
git difftool --staged
git log --patch -2 # is the number of commits to view
git log --stat -2