1st, Setup repo : http://rzr.online.fr/q/harmattan
apt-get remove git git-core # git 1.6.5.7-0maemo0~rzr2 apt-get install bash git-core # git-core_1.6.5.7-0maemo0~rzr4_armel.deb
PATH=${PATH}:/usr/libexec/git-core && export PATH git --version # git version 1.6.5.7
I am currently packaging git for harmattan, fell free to improve it , branch this “user-rzr”
https://gitorious.org/~rzr/git/git
FeedBack: http://forum.meego.com/showthread.php?p=28936#post28936
git clone root@nfc:/etc Cloning into 'etc'... root@nfc's password: sh: git-upload-pack: Operation not permitted fatal: The remote end hung up unexpectedly
ToDo :
git-svn glmf129 ( romain pelisse )
git rebase -i HEAD~6 # git rebase pick reword edit squash
excludesfile
git-rerere
git stash list git cherry pick $h
git rebase --ab
git bessect start git b good $h git b bad HEAD git b run make test
git-svn "RA layer file already exists:" * http://stackoverflow.com/questions/2310080/how-to-remove-a-file-from-a-git-commit-to-push-to-svn
git how to replace branch contents by other branch :
git config core.filemode false
export PS1='\u@\h:\W$(__git_ps1)'
git config --global core.autocrlf true
http://stackoverflow.com/questions/1889559/git-diff-to-ignore-m
http://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-mode-changes-chmod# git config core.filemode false
Delete remote branch name :
git push origin --delete <branchName>
(or git push origin :membership_processing )
TaG :
git show-ref --tags
http://stackoverflow.com/questions/5480258/how-to-delete-a-remote-git-tag/12791414#12791414
git push --delete "$origin" "$tag"
git am
ReWrite : emails in commits
MisC:
sudo aptitude install git-core git clone http://git.moblin.org/cgit.cgi/fastinit/ # http://www.moblin.org/repos/projects/mobile-browser.git git status git branch git diff # git commit -a -c "msg" git log # git push
TODO
mkdir src && cd src git init echo "src:init" >> README.txt git add README.txt git commit -a -m "init"
cd .. git clone src cloned cd cloned git config remote.origin.push master:incoming echo "cloned:clone" >> README.txt
cd ../src echo "src:commit" >> README.txt git commit -a -m "edited"
cd ../cloned echo "cloned:commit" >> README.txt git commit -a -m "edited" git push # incoming
cd ../src echo "src:about to merge" >> README.txt git commit -a -m "about to merge" git merge incoming mg README.txt echo "src:resolved" >> README.txt git add README.txt git commit -a -m "resolved"
cd ../cloned/ git pull cat README.txt
will erase data :
mkdir src && cd src/ git init echo 1 > README.txt git add README.txt git commit -a -m 1 cd .. git clone src cloned cd cloned/ echo 2 > README.txt git diff git commit -a -m 2 git pull && git push cd ../src/ git log git diff cat README.txt # 1 git reset --hard HEAD cat README.txt # 2
http://hans.fugal.net/blog/2008/11/10/git-push-is-worse-than-worthless#comment-1952
svn cat ~ git show :
http://stackoverflow.com/questions/2071288/equivalent-in-git-of-hg-cat-or-svn-cat
git show $branch:$filename
svn merge :
branch=master git rebase -Xtheirs $branch # or merge.. git status | grep 'deleted by us:' | cut -d: -f2 | xargs -eol git rm git status | grep 'added by them:' | cut -d: -f2 | xargs -eol git add git rebase --continue git merge -Xtheirs $branch
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://vcs.maemo.org/git/monky/info/refs
GIT_SSL_NO_VERIFY=1 git clone https://vcs.maemo.org/git/monky
warning: remote HEAD refers to nonexistent ref, unable to checkout. * http://stackoverflow.com/questions/11893678/warning-remote-head-refers-to-nonexistent-ref-unable-to-checkout # TODO ?
Q:
git rebase "You can repeat your command with --allow-empty,"
A:
git commit --amend --allow-empty
+Origin: <vendor|upstream|other>, <url of original patch> +Bug: <url in upstream bugtracker> +Bug-Debian: https://bugs.debian.org/<bugnumber> +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> +Forwarded: <no|not-needed|url proving that it has been forwarded> +Reviewed-By: <name and email of someone who approved the patch> +Last-Update: 2020-07-23 +Acked-by: ... +See-Also: ... +Upstream-Status: url? + Apply-on: