gibney.org : Technology : Programming : Git


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





Git
(Entry Nr. 436, by user 1 | edit)
Create a .git repo:
git init

Update the repo:
git add .; git commit -a;

Look at the history:
git log

With diffs:
git log --stat

Look at the differences between a repo at ssh://some/where and the repo in the current dir:
git fetch ssh://some/where somebranch;
git diff ..FETCH_HEAD;
git log -p ...FETCH_HEAD

To merge it:
git merge FETCH_HEAD

To not merge it:
Next fetch will overwrite FETCH_HEAD

Maybe useful:
git remote add remote-name ssh://some/where
then git fetch remote-name will fetch their branches into remote-name/*
Create a new entry at this position