Friday, October 17, 2014

GIT

scp -p -P 29418 -i D:/id_rsa xxx@10.10.11.221:hooks/commit-msg .git/hooks/
git add test.txt
git commit -m "Test change"

git clean -fdx

git push http://10.10.11.221/gerrit/info3low/pf/ipc HEAD:refs/for/master

info3-low_dev

git status

$ git commit --signoff -m "Added driver for RT Domain Shared memory"

$ git format-patch -1

To Rever changes
------
http://gitimmersion.com/lab_16.html
$ git revert HEAD --no-edit
[master 0c7524c] Revert "Oops, we didn't want this commit"
 1 file changed, 1 insertion(+), 1 deletion(-)

----

http://linux.die.net/man/1/git-format-patch
https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html
https://openhatch.org/wiki/How_to_generate_patches_with_git_format-patch

Cloning into 'kernel'...
remote: Counting objects: 3094776, done
remote: Finding sources: 100% (3094776/3094776)
remote: Total 3094776 (delta 2600981), reused 3094776 (delta 2600981)
Receiving objects: 100% (3094776/3094776), 641.04 MiB | 639.00 KiB/s, done.
Resolving deltas: 100% (2600981/2600981), done.
Checking connectivity... done.
error: unable to create file drivers/gpu/drm/nouveau/core/subdev/i2c/aux.c (No s
uch file or directory)
Checking out files: 100% (43492/43492), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

curl -o .git/hooks/commit-msg xxx@10.10.11.221/tools/hooks/commit-msg
chmod u+x .git/hooks/commit-msg

-----
scp -p -P 29418 xxx@10.10.11.221:hooks/commit-msg .git/hooks/

git clone http://10.10.11.221/gerrit/info3low/pf/ipc
git checkout mule114
git pull http://10.10.11.221/gerrit/info3low/pf/ipc mule114

git rm test.txt
git add iccom_app_lib/
git push http://10.10.11.221/gerrit/info3low/pf/ipc HEAD:refs/for/mule114
git commit --amend

$ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg .git/hooks/

-------------------------- Tag -------------------------

$ git tag v1_0

$ git push origin v1_0

xxx@L-3611 /d/GIT/Tag_check/ipc (master)
$ git tag -l
v1_0

$ git checkout v1_1

$ git checkout v1_1^
-----------------------------------

$ diff -uNr linux.vanilla linux.new > patchfile

$ lsdiff patchfile
$cd 
$patch -p1 < ../patchfile
http://clubjuggler.livejournal.com/138364.html
http://mmc.geofisica.unam.mx/acl/edp/Herramientas/CyC++/Documentacion/CyC++Style/industrial-strengthC++.pdf