Clone an existing repo, cd …to your working directory…
git clone gerrit:NameOfProject |
Create remote repo
ssh gerrit gerrit create-project --name NameOfProject git remote add gerrit gerrit:NameOfProject |
Clean up local repo, cd to local repo
git remote prune origin git fetch --tags |
Search for a project
ssh gerrit gerrit ls-projects | grep filterExpression |
Delete Remote Tag
git tag -d 12345 git push origin :refs/tags/12345 |
$ git config --global user.name Bob $ git config --global user.email bob@bob.com $ git config --global color.branch auto $ git config --global color.diff auto $ git config --global color.interactive auto $ git config --global color.status auto - BASH- ssh gerrit gerrit ls-projects | grep filterExpression |
neu File in user folder “config”:
Host gerrit
Hostname url link
Port
29418
User Your_username
IdentityFile ~/.ssh/gerrit_Your_username_rsa
TEST: ssh gerrit
http://gitimmersion.com/
http://gitready.com/
http://git-scm.com/
http://stackoverflow.com/questions/tagged/git
http://www.kernel.org/pub/software/scm/git/docs/
move a tag script
del .git\shallow call git tag -f -m "Tag moved by xxx" %1 call git push -f %GIT_REMOTE% refs/tags/%1
create a tag script
del .git\shallow call git tag -m "Successful build: nane_of_tag call git push %GIT_REMOTE% refs/tags/build/nane_of_tag
Links:
http://www.marcusoft.net/2014/02/mnb-git.html
http://rionscode.wordpress.com/2013/04/19/integrating-and-using-github-in-visual-studio-2012/
Merge Tool http://www.sourcegear.com/diffmerge/downloads.php
Path to mergetool: C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe
Mergetool command:
“C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe” /m /r=”$MERGED” “$LOCAL” “$BASE” “$REMOTE”
$ ssh-keygen.exe -t rsa -f $HOME/.ssh/gerrit_”$USERNAME”_rsa -C “james@hotmfffail.cfom”